Hello Guest

[SOLVED] Applet reload

  • 11 Replies
  • 11591 Views
[SOLVED] Applet reload
« on: May 25, 2009, 09:51:37 »
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)

Code: [Select]
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
« Last Edit: May 25, 2009, 12:19:58 by Mickelukas »

*

Offline kappa

  • *****
  • 1316
Re: Applet reload
« Reply #1 on: May 25, 2009, 10:02:35 »
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.

Re: Applet reload
« Reply #2 on: May 25, 2009, 10:57:01 »
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)

*

Offline kappa

  • *****
  • 1316
Re: Applet reload
« Reply #3 on: May 25, 2009, 11:09:13 »
hmm, can you post a copy of you html file plz?

Re: Applet reload
« Reply #4 on: May 25, 2009, 11:21:21 »
Uhm... nope :P

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

Re: Applet reload
« Reply #5 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

*

Offline kappa

  • *****
  • 1316
Re: Applet reload
« Reply #6 on: May 25, 2009, 12:09:16 »
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
Code: [Select]
<param name="separate_jvm" value="true">

Re: Applet reload
« Reply #7 on: May 25, 2009, 12:14:00 »
Cool, thanks!

One issue down one to go :)

*

Offline kappa

  • *****
  • 1316
Re: Applet reload
« Reply #8 on: May 25, 2009, 12:16:06 »
btw do you still get the first issue when using the seperate_jvm tag?

Re: Applet reload
« Reply #9 on: May 25, 2009, 12:19:44 »
Nope, it's gone with the wind :)

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

*

Offline kappa

  • *****
  • 1316
Re: [SOLVED] Applet reload
« Reply #10 on: May 25, 2009, 13:14:32 »
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.

Re: [SOLVED] Applet reload
« Reply #11 on: May 25, 2009, 13:28:02 »
Thanks alot :)