Trying to download and install jogl files and run without restarting applet

I have written an applet that checks the user’s system to see if jogl.jar, jogl.dll and jogl_cg.dll are installed on the client machine before it runs the jogl code. If they are not, the applet will download the files and put them in the correct directories. The problem is that the applet will fail because the jvm cannot see the jogl libraries. On restart of the applet, it can now see them and run. Is there a way to get the jvm to see them without having to restart? I have tryed the System.load and System.loadLibrary, but they have failed.

any advice is appreciated,
thanks

I don’t know whether it’s possible to make this work using the standard applet mechanisms. You basically would need to create a new class loader which knows the path to the downloaded jogl.jar and force this class loader to load both the JOGL classes as well as the applet classes instead of delegating to the applet class loader to do this work, because the applet class loader knows the path to the applet but doesn’t know about the JOGL classes. The same loader would need to be used to load the JOGL libraries. You can disable JOGL’s automatic library loading by calling net.java.games.jogl.impl.NativeLibLoader.disableLoading(). There is more discussion on this topic in this thread.

Much thanks for the info!!!