Jump to content
Excelsior Forums
Finnerale

getResource() doesn't work

Recommended Posts

Hi,

I'm using the class.getResource() command to access the Jar resources

but after compiling to an .exe its still targeting the .jar file.

java.lang.NullPointerException

file:/I:/test/JSPowerCalc.jar!/de/leopoldluley/calculator/fxml/jsCalc.fxml:22

And even I put the .jar in the right directory I get the NullPointerException!

With the .jar in the directory it should be fine, but I still get the same exception...

Is this a bug or is there any other way to access the resources in the .exe?

Share this post


Link to post
Share on other sites

Please contact support: java at excelsior-usa.com

Please attach a jar reproducing the problem and jet project file that you use to compile the jar

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×