Webstart problem

I’m having real trouble getting java webstart to work with the newest version of JME.  I’m sure I signed everything correctly, but still get a very plain error message with no real details:



http://bdogstudios.kattare.com/webstart/TestProjectedWater.jnlp



I managed to enable the java consol locally and run javaws on the jar file to get the same affect, and see a stacktrace.



Exception in thread “main” java.lang.NoClassDefFoundError: com/jme/app/SimplePassGame

        at java.lang.ClassLoader.defineClass1(Native Method)

        at java.lang.ClassLoader.defineClass(Unknown Source)





I also see this error if I try to run the jar file with the -jar option:

java -jar TestProjectedWater.jar

In another thread, it was suggested this was because of the natives library.  Does anyone have any further suggestions on how to fix this?

Seems like it can't find the jme classes.



<!–

    <jar href="jars/jme.jar"/>

–>

???



<description kind="short">A landscaper application using JOGL</description>

:-o :wink:


your landscaper program is the projected water demo?? :slight_smile:

If you DO have jme.jar there, perhaps it is old enough that it doesn't contain simple pass game.

Heres my jnlp file:  It was working just fine before I grabbed the latest JME and LWJGL 1.02b (rather than .99) I did this to use MrCoders water demo code.  So this is a newer jme.jar, not older.  Again, this code works fine locally when I run "java -classpath  …  TestProjectedWater"  It also cannot find jme aparently when I run locally "java -jar TestProjectedWater.jar" despite whatever classpath I specify.




<?xml version="1.0" encoding="utf-8"?>
<!-- Test for landscaper Web Start Deployment -->
<jnlp
  spec="1.0+"
  codebase="http://www.bdogstudios.kattare.com/webstart/"
  href="Lesson8.jnlp">
  <information>
    <title>Landscaper 2 test</title>
    <vendor>Brenden Beaman - Bdog studios</vendor>
    <homepage href="http://www.bdogstudios.kattare.com"/>

    <description>Landscaper</description>
    <description kind="short">A landscaper application using JOGL</description>
    <offline-allowed/>
  </information>
  <security>
    <all-permissions/>
  </security>
 <resources>
    <j2se href="http://java.sun.com/products/autodl/j2se" version="1.5+"/>
    <jar href="jars/TestProjectedWater.jar"/>
    <jar href="jars/jme.jar"/>
    <jar href="jars/jme-terrain.jar"/>
    <jar href="jars/jme-awt.jar"/>
    <jar href="jars/jme-model.jar"/>
    <jar href="jars/lwjgl.jar"/>
    <jar href="jars/jme-effects.jar"/>
  </resources>


  <resources os="Windows">
    <j2se href="http://java.sun.com/products/autodl/j2se" version="1.4+"/>
    <nativelib href="jars/win32-natives.jar"/>   
  </resources>



Well, when I click your link, and webstart lets me view the launch file when the exception occurs it shows me this.



<?xml version="1.0" encoding="utf-8"?>
<!-- Test for landscaper Web Start Deployment -->
<jnlp
  spec="1.0+"
  codebase="http://www.bdogstudios.kattare.com/webstart/"
  href="TestProjectedWater.jnlp">
  <information>
    <title>Landscaper 2 test</title>
    <vendor>Brenden Beaman - Bdog studios</vendor>
    <homepage href="http://www.bdogstudios.kattare.com"/>

    <description>Landscaper</description>
    <description kind="short">A landscaper application using JOGL</description>
    <offline-allowed/>
  </information>
  <security>
    <all-permissions/>
  </security>
  <resources>
    <j2se href="http://java.sun.com/products/autodl/j2se" version="1.5+"/>
    <jar href="jars/TestProjectedWater.jar"/>
<!--
    <jar href="jars/jme.jar"/>
-->
    <jar href="jars/jme-terrain.jar"/>
    <jar href="jars/jme-awt.jar"/>
    <jar href="jars/jme-model.jar"/>
    <jar href="jars/lwjgl.jar"/>
    <jar href="jars/jme-effects.jar"/>
  </resources>
<jnlpservlet
    loglevel="DEBUG"
    logpath="jnlpdownloadservlet.log" />

  <resources os="Windows">
    <j2se href="http://java.sun.com/products/autodl/j2se" version="1.5"/>
    <nativelib href="jars/win32-natives.jar"/>   
  </resources>
<!--

  <resources os="SunOS" arch="sparc">
    <j2se href="http://java.sun.com/products/autodl/j2se" version="1.4+"/>
    <jar href="lib/jogl-solsparc.jar"/>
    <nativelib href="lib/jogl-solsparc-native.jar"/>
  </resources>
  <resources os="Linux">
    <j2se href="http://java.sun.com/products/autodl/j2se" version="1.4+"/>
    <jar href="lib/jogl-linux.jar"/>
    <nativelib href="lib/jogl-linux-native.jar"/>
  </resources>
  <resources os="Mac OS">
    <j2se href="http://java.sun.com/products/autodl/j2se" version="1.4+"/>
    <jar href="lib/jogl-macos.jar"/>
    <nativelib href="lib/jogl-macos-native.jar"/>
  </resources>
-->
  <application-desc/>
</jnlp>



With the jme.jar section commented out like I posted, which makes sense considering that it sais it can't find it.

For the lesson 8 stuff you post below I get: Could not verify signing in resource: http://www.bdogstudios.kattare.com/webstart/jars/win32-natives.jar

I've been messing around with it llama, I wanted to see if I got a different error while jme.jar was remarked out. 





Update:  it was definitly a problem with my win32-natives.jar;  I could have sworn I started with the .99 lwjgl natives and when it didn't work I tried the 1.02b, but now I re-uploaded my 2 month old natives jar and all of a sudden it worked…





So now I'm at the point where the application webstarts correctly… great!  but, if I attachchild my terrainblock, it crashes without any feedback. 



INFO: Camera created.

Aug 11, 2006 12:35:46 PM com.jme.scene.Node attachChild

INFO: Child (ProjectedGrid) attached to this node (rootNode)



//this is where terrainblock should be added



Aug 11, 2006 12:35:49 PM com.jme.app.BaseSimpleGame cleanup

INFO: Cleaning up resources.

Aug 11, 2006 12:35:49 PM com.jme.app.BaseGame start

INFO: Application ending.



I believe it has something to do with the newer jme-terrain.jar that is required.  (batch support added)