how to improve the loading speed of a JOGL applet?

Hi

I am a novice to JOGL in applets. I would be really grateful for any help you could give!

I am developing an applet based 3d JOGL application that uses JNLPAppletLauncher, just like the demo at:
https://jogl-demos.dev.java.net/applettest.html

Currently I am using Windows XP.

When opening an .html page containing this applet on Firefox or Internet Explorer, I notice that it takes about 3 secs for the JVM to load up, and another 2 secs for the Windows .dll files to be extracted:

JNLPAppletLauncher.loadLibrary(“jogl”)
loading: C:\DOCUME~1\luke\LOCALS~1\Temp\jnlp-applet\jln3943\jln3945\jogl.dll
JNLPAppletLauncher.loadLibrary(“jogl_awt”)
loading: C:\DOCUME~1\luke\LOCALS~1\Temp\jnlp-applet\jln3943\jln3945\jogl_awt.dll

Once the web page is opened, then I can open new instances of the applet and neither the JVM nor the .dll files have to be loaded/extracted.

As well as in the Local Settings\Temp\jnlp-applet directory, I also see that on my hard drive at C:\Documents and Settings\user.jogl_ext, there are countless folders with long names like “__Documents%20and%20Settings_Desktop_Gears_Gears%20_e7b764d608caca0e8fa6c6415c93df3” that each contain the extracted .dll files.

To me it seems a little overkill to have to extract a copy of the .dll files each time a new web page is opened.

I am trying to find ways to speed up the initial applet loading time. Is there a way one can avoid having to do this (e.g. see if it is already installed somewhere on the system, and only load if it can’t find anything?) Or is this impossible, given the numerous security restrictions of applets?

Would be grateful for any help you could give.

Luke

Unfortunately due to the class loader hierarchy and the restriction that the same DLL can not be loaded by two different class loaders, it is actually necessary to make a fresh copy of the DLL for each applet that is loaded. These copies are cleaned up afterward and since the DLLs are small and the data is already on the local disk this copy doesn’t take much time, so I would recommend you not worry about it.