You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I opened up the example-proj-1.0.jar and all the resources are there. Is there something I'm missing? I read some stack overflow threads about maybe adding Class-Path: . to the manifest.mf.
The text was updated successfully, but these errors were encountered:
robgraeber
changed the title
Universal App - Jar classpath for resources
Universal App - Can't find resources
Oct 21, 2016
Yeah I figured it out. It was because I was iterating over the files in a directory, but that doesn't work with JARs. I ended up writing a helper function that checks if the code is inside of a JAR or not, and iterates appropriately.
Hey I'm having issues getting access to resource files after packaging. It seems like getResource can't find the root of the Jar for some reason.
For example, before packaging:
And after packaging:
I opened up the example-proj-1.0.jar and all the resources are there. Is there something I'm missing? I read some stack overflow threads about maybe adding
Class-Path: .
to the manifest.mf.The text was updated successfully, but these errors were encountered: