URI is not hierarchical with launch4j
807588Mar 17 2009 — edited Mar 18 2009Hello 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!