I'm trying to deploy my app with Java Web Start, but I keep getting
NullPointerExceptions because my application can't find the resources.
Here's my JWS file:
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0+"
codebase="http://www.mysite.com/deployment"
version="1.0" href="MyJavaWebStartFile.jnlp"
>
<information>
<title>My App</title>
<vendor>Me</vendor>
<homepage href="http://www.mysite.com"/>
<description>My App</description>
<icon kind="splash" href="splash.png"/>
<menu/>
<desktop/>
<shortcut/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<jar href="ApplicationJARWithResourcesIncluded.jar"/>
<jar href="JustTheResources.jar"/>
<jar href="jogl.jar"/>
<jar href="hial.jar"/>
<jar href="Xith3D.jar"/>
<jar href="jagatoo.jar"/>
<jar href="openmali.jar"/>
<jar href="gluegen-rt.jar"/>
<jar href="hud-themes.jar"/>
<jar href="media.jar"/>
<jar href="jops.jar"/>
</resources>
<resources os="Windows">
<j2se href="http://java.sun.com/products/autodl/j2se" version="1.6+"/>
<nativelib href="jogl-awt-windows-native.jar"/>
<nativelib href="jogl-cg-windows-native.jar"/>
<nativelib href="jogl-windows-native.jar"/>
<nativelib href="gluegen-windows-native.jar"/>
</resources>
<application-desc/>
</jnlp>
Just for safety, you see that I have included two different JARs,
ApplicationJARWithResourcesIncluded.jar and
JustTheResources.jar, but even with that, my app can't find resources. I even added a third set of resources which I hoped would help, and that's putting the entire file system of resources directly on my website, un-zipped and un-JARed, but it still doesn't work. I even tried using ClassLoader.getResource() manually (not using ResourceLocator) and it STILL won't work.
Can someone find my problem?