Webstart error

being a clubie today…and for a number of days, or weeks or months now…anyway:

I am truly over seeing this error when I try to launch my app by webstart:

java.lang.reflect.InvocationTargetException

Caused by: java.lang.NoClassDefFoundError
	at org.lwjgl.openal.AL.<clinit>(AL.java:86)

Found a number of different “solutions” to this that all seem to be trial and error and for me all error. Anyone know why this happens?

Did you included all needed jars in the jnlp?
Could you post your jnlp file?


<?xml version="1.0" encoding="utf-8"?> 
<jnlp 
  spec="1.0+" 
  codebase="http://127.0.0.1/GT7" 
  href="GT7.jnlp"> 
  <information> 
    <title>Galaxy Traders 0.0.1</title> 
    <vendor>MB</vendor> 
    <homepage href="docs/help.html"/> 
    <description>Startship trading, combat and exploration.</description> 
    <description kind="short">Space Sim</description> 
    <icon href="images/swingset2.jpg"/> 
    <offline-allowed/> 
  </information> 
  <security> 
      <all-permissions/> 
  </security> 
   <resources>  
     <j2se version="1.5+"/>   
     <jar href="GT7.jar"/> 
     <jar href="lwjgl.jar"/>
     <jar href="lwjgl_util.jar"/>
     <jar href="jenn.jar"/>
   </resources>
   <resources os="Windows"> 
      <j2se version="1.5+"/>  
      <nativelib href="lwjgl_win.jar"/> 
      <nativelib href="lwjgl_al_win.jar"/> 
   </resources> 
   <resources os="Linux" arch="i386"> 
      <j2se version="1.5+"/>  
      <nativelib href="linux_lib.jar"/> 
      <nativelib href="linux_libal.jar"/> 
   </resources> 
  <property key="java.library.path" value="." />
  <application-desc main-class="GT7.client.ClientGUI"/> 
</jnlp> 

and all jars are signed

At first sight I don’t see any problem in your jnlp.
However, if I compare it with alienflux.jnlp, I do notice that the tag is in the main element, and that the dlls are packed into one jar. I don’t know if this will make a difference as the error msg doesn’t say that it can’t load the dll, but I do remember that the library path needed to be set to get OpenAL to work through jnlp.

Thanks. Tried it and webstart fails syaing there is no properties tag. I will try to put all dlls into single jar.

Found the AF jnlp file and mine is nearly idnetical, barring file names.

Uncle! ???

BOOYAH! FOund it. Downloaded 0.96 again (yes still on that release) and took the native folder, made one jar out of all of it and replaced the windows os native ref with a ref to the new jar. remove the property key ref altogether and voila!!
Thanks!!!