Reply – Problem when exporting my application to a .jar file
Your Name
Subject
Message
or Cancel
In Reply To
Problem when exporting my application to a .jar file
— by Hubert Hubert
Hello,

I need some help with Jogamp. The situation is the following: I have an eclipse project "JOGL", set up as described in the tutorial, and an application "Quarto" that imports the JOGL project. When running the application from eclipse, everything works perfectly. The problem is that when I export the application to an executable jar file, it does not run anymore.

Some more details: the error message I get is

Catched FileNotFoundException: F:\blabla\Quarto\Quarto-natives-windows-i586.jar (The system cannot find the file specified), while TempJarCache.bootstrapNativeLib() of jar:file:/F:/blabla/Quarto/Quarto-natives-windows-i586.jar!/ (file:/F:/blabla/Quarto/ + Quarto-natives-windows-i586.jar)

Exception in thread "main" java.lang.UnsatisfiedLinkError: no gluegen-rt in java.library.path (...)


I can solve the UnstatisfiedLinkError by adding to the library path a folder with the native dll's that I found in the jogamp-all-platforms.7z archive. By doing this I can run the application, although the FileNotFoundException is still there. However, I was under the impression that the native jar's (gluegen-rt-natives-windows-i586.jar,...) allowed to not use the native dll's. Am I in the wrong here and do I absolutely need the dll files? If I am right, how do I ensure that the native jar's are exported with my application?


Thank you in advance for your answers.