Hello Guest

JNLP Extensions modified?

  • 3 Replies
JNLP Extensions modified?
« on: July 10, 2008, 16:00:13 »

I wonder whether you've modified the JNLP extension feature?  I've structured my web start jnlp files for a long time now like this:
Code: [Select]
    <j2se version="1.6+"/>
    <jar href="Quake3BSPLoader.jar" main="true"/>
    <jar href="q3dm1.jar"/>
[b] <extension name="lwjgl" href="http://lwjgl.org/jnlp/extension.php" />[/b]

Today I checked by website and suddenly (ok, I haven't checked for some months I have to admit :P) my web start applications do not work anymore.

I get this exception (important things highlighted):

   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at com.sun.javaws.Launcher.executeApplication(Unknown Source)
   at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
   at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
   at com.sun.javaws.Launcher.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoClassDefFoundError: org/lwjgl/devil/IL
   at de.bloodyblades.bsp3loader.Quake3BSPLoader.init(Quake3BSPLoader.java:81)
   at de.bloodyblades.bsp3loader.Quake3BSPLoader.<init>(Quake3BSPLoader.java:44)
   at de.bloodyblades.bsp3loader.Quake3BSPLoader.main(Quake3BSPLoader.java:222)
   ... 9 more
Caused by: java.lang.ClassNotFoundException: org.lwjgl.devil.IL
   at java.net.URLClassLoader$1.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(Unknown Source)
   at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClassInternal(Unknown Source)
   ... 12 more

Can you help me fixing this issue?

If you want to try it yourself: http://bloody-blades.de/jnlp/q3bsp/Quake3BSPLoader.jnlp

Thank you very much in advance!


Re: JNLP Extensions modified?
« Reply #1 on: July 10, 2008, 16:10:22 »
DevIL was removed a while back, have a hunt around the forum as there was some alternative libraries suggested if you want a simple replacement.


Offline Matzon

  • *****
  • 2242
Re: JNLP Extensions modified?
« Reply #2 on: July 10, 2008, 17:01:43 »
I have been meaning to do an extension.php?version=1.1.4 - but I haven't gotten around to doing it yet :-\
(another reason is that I am not 100% sure how we want to handle this, as this means that downloads happen from our server)

Re: JNLP Extensions modified?
« Reply #3 on: July 10, 2008, 20:25:06 »
So if I don't want to make changes to my old code, it'd be probably best to upload the missing libs to my web server and add them as jars to the resources section in the jnlps. (?)

Okay, thanks :-)