Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11991 Posts in 1587 Topics- by 3509 Members - Latest Member: lioneltenel

27. May 2012, 04:09:31 am
Xith3D CommunityProjectsGames production pipeline (Moderator: clilian)What's wrong with this JWS file?
Pages: [1]
Print
Author Topic: What's wrong with this JWS file?  (Read 3803 times)
kukanani
Fierce Warrior
****
Offline Offline

Posts: 504


My game is coming along fairly smoothly...


View Profile WWW
« on: 19. May 2008, 11:36:35 pm »

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:

Code:
<?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?
« Last Edit: 20. May 2008, 02:06:44 am by kukanani » Logged

xith.setCoolnessLevel(10);
jMe.setCoolnessLevel(0);
xith.rock();
kukanani
Fierce Warrior
****
Offline Offline

Posts: 504


My game is coming along fairly smoothly...


View Profile WWW
« Reply #1 on: 20. May 2008, 02:13:03 am »

Another thing:

If I move the JWS file and all of the resources un-packaged to the local computer (in the same directory), I can run the client.
Logged

xith.setCoolnessLevel(10);
jMe.setCoolnessLevel(0);
xith.rock();
nick561
Just dropped in

Offline Offline

Posts: 1


View Profile
« Reply #2 on: 05. May 2012, 07:03:59 am »

Thanks kukanani........
Logged

Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic