External JAR files & applets

I recently put a framework i had developed into a jar file so it was an external library i could just extend in a new project.

The new project has 2 files:

  • BaseEngine.jar
  • BaseDemo.jar

BaseEngine holds purely the classes and functionality, then BaseDemo uses it as a library and implements the objects and runs the functions needed.

When i run it as an app it runs fine, however when i try to put it in an applet i get the following errors…

java.lang.UnsatisfiedLinkError: Native Library C:\Documents and Settings\user.jogl_ext\localhost_Applet_Test_e9138ef91ceefa9aa8e8a263863a982a\1.1.0-rc3\gluegen-rt.dll already loaded in another classloader

im a bit baffled as ive only got one applet active and its this one…

Anyone seen this error before or have any advice about it?

Try getting the simple Gears applet demo to work in your setup first, and then try putting in your entire code.

Also try using the new JNLPAppletLauncher; the applet examples on the jogl-demos page have been rewritten in terms of it. It solves some problems with the previous JOGLAppletLauncher which could result in this kind of error.

I had my old code running in the applet nicely, although i recently split it so the framework was in a library and the main project now just includes the library and uses its functionality from there, rather than it all being in the same project. Will give the new launcher a try, im guessing there are examples of how to use this on the demo.jogl page?

There are examples both on the JNLPAppletLauncher’s main page as well as on the jogl-demos page.