Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

URI is not hierarchical with launch4j

807588Mar 17 2009 — edited Mar 18 2009
Hello all,

I am having a slight problem wrapping my jar as an exe using launch4j and was wondering if anyone could offer assistance. If this is the wrong place for this, please direct me somewhere that is appropriate.

I have a program that runs fine from netbeans / ant / command line. However, when I wrap it in an exe with launch4j i get the following error: java.lang.IllegalArgumentException: URI is not hierarchical.

The problem stems from the following code:

URL url = this.getClass().getClassLoader().getResource("resources/sprites");
dir = new File(url.toURI());

I am using a resource loader and a relative path. I do not see nor do I understand the error. Am I missing something? Could it be another error that is being wrongly attributed to this? Any help is appreciated.

thanks!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 15 2009
Added on Mar 17 2009
6 comments
1,281 views