[SOLVED] Applet reload

Started by Mickelukas, May 25, 2009, 09:51:37

Previous topic - Next topic

Mickelukas

When having an applet open and hitting the reload button I usually get the following error:
Fatal error occured (5): C:\DOCUME~1\CWNL-M~1\LOCALS~1\Temp\localhost\Dreamlandz\jinput.jar.pack.lzma (The system cannot find the file specified)

Directory of C:\Documents and Settings\cwnl-mlundstr\Local Settings\Temp\localhost\Dreamlandz

25-05-2009  11:46    <DIR>          .
25-05-2009  11:46    <DIR>          ..
25-05-2009  11:46            79.326 Dreamlandz.jar
25-05-2009  11:46           220.612 jinput.jar
25-05-2009  11:46           580.736 lwjgl.jar
25-05-2009  11:46            33.900 lwjgl_util.jar
25-05-2009  11:46            70.326 lwjgl_util.jar.pack
25-05-2009  11:45    <DIR>          natives
25-05-2009  11:46           379.778 windows_natives.jar.lzma

kappa

are you using jinput? that is Controllers in lwjgl, if not then it should be safe to remove the jinput.jar.pack.lzma from your html and applet.

Mickelukas

That worked, now I am missing this file instead though :P

Fatal error occured (5): C:\DOCUME~1\CWNL-M~1\LOCALS~1\Temp\localhost\Dreamlandz\lwjgl_util.jar.pack.lzma (The system cannot find the file specified)

When reloading I also sometimes get this error:
org.lwjgl.LWJGLException: Parent.isDisplayable() must be true
   at org.lwjgl.opengl.Display.createWindow(Display.java:303)
   at org.lwjgl.opengl.Display.create(Display.java:839)
   at org.lwjgl.opengl.Display.create(Display.java:767)
   at org.lwjgl.opengl.Display.create(Display.java:748)

kappa

hmm, can you post a copy of you html file plz?

Mickelukas

Uhm... nope :P

I'm using the deployJava.js file supplied by Java. I'll try to reproduce it using a .html file.

Mickelukas

I had no problems with reproducing it with the appletloader.html that comes from the sourceforge download page.

When reloading the standard gears demo I also sometimes get:
Exception in thread "Thread-73" java.lang.UnsatisfiedLinkError: Native Library C:\Documents and Settings\cwnl-mlundstr\Local Settings\Temp\appletloadertest\natives\lwjgl.dll already loaded in another classloader

kappa

Quote from: Mickelukas on May 25, 2009, 11:54:22
I had no problems with reproducing it with the appletloader.html that comes from the sourceforge download page.

When reloading the standard gears demo I also sometimes get:
Exception in thread "Thread-73" java.lang.UnsatisfiedLinkError: Native Library C:\Documents and Settings\cwnl-mlundstr\Local Settings\Temp\appletloadertest\natives\lwjgl.dll already loaded in another classloader

thats a different problem and is actually a java issue, this is due to the jvm only being able to load the same natives only once in the same jvm, this has been fixed by java plugin2 as you can simply run each applet in a separate process. You should definitely use this with lwjgl applets as it'll make them alot more stable.

to start each applet in another process, simply add this parameter inside your applet tag
<param name="separate_jvm" value="true">

Mickelukas

Cool, thanks!

One issue down one to go :)

kappa

btw do you still get the first issue when using the seperate_jvm tag?

Mickelukas

Nope, it's gone with the wind :)

You're my personal hero, no idea about my last issue with the mouse leaving the applet?

kappa

we'll needs the more l33t lwjgl developers too look at the mouse leaving Display issue as its not just an applet issue, i'll see if i can prod either mazon or elias on irc.