Exporting
Posted by JOGLbeginner on Apr 26, 2013; 7:22pm
URL: https://forum.jogamp.org/Exporting-tp4029053.html
Hello everyone,
I've build a simple JOGL application to play with it. But exporting it to a runnable JAR file seems to be quite difficult. Within the Eclipse environment it works perfectly, no errors and runs smooth.
But when I export it to a runnable JAR file, it seems to crash with the following error:
C:\Users\Roland\Desktop\Game>java -jar Game2.jar
Catched FileNotFoundException: C:\Users\Roland\Desktop\Game\Game2-natives-window
s-amd64.jar (Het systeem kan het opgegeven bestand niet vinden), while TempJarCa
che.bootstrapNativeLib() of jar:file:/C:/Users/Roland/Desktop/Game/Game2-natives
-windows-amd64.jar!/ (file:/C:/Users/Roland/Desktop/Game/ + Game2-natives-window
s-amd64.jar)
Exception in thread "main" java.lang.UnsatisfiedLinkError: no gluegen-rt in java
.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at com.jogamp.common.jvm.JNILibLoaderBase.loadLibraryInternal(JNILibLoad
erBase.java:442)
at com.jogamp.common.jvm.JNILibLoaderBase.access$000(JNILibLoaderBase.ja
va:59)
at com.jogamp.common.jvm.JNILibLoaderBase$DefaultAction.loadLibrary(JNIL
ibLoaderBase.java:90)
at com.jogamp.common.jvm.JNILibLoaderBase.loadLibrary(JNILibLoaderBase.j
ava:328)
at com.jogamp.common.os.DynamicLibraryBundle$GlueJNILibLoader.loadLibrar
y(DynamicLibraryBundle.java:390)
at com.jogamp.common.os.Platform.loadGlueGenRTImpl(Platform.java:251)
at com.jogamp.common.os.Platform.access$000(Platform.java:57)
at com.jogamp.common.os.Platform$1.run(Platform.java:186)
at com.jogamp.common.os.Platform$1.run(Platform.java:183)
at java.security.AccessController.doPrivileged(Native Method)
at com.jogamp.common.os.Platform.<clinit>(Platform.java:183)
at javax.media.opengl.GLProfile.<clinit>(GLProfile.java:82)
at javax.media.opengl.awt.GLCanvas.<init>(GLCanvas.java:246)
at javax.media.opengl.awt.GLCanvas.<init>(GLCanvas.java:196)
at javax.media.opengl.awt.GLCanvas.<init>(GLCanvas.java:186)
at main.MainPanel.<init>(MainPanel.java:64)
at main.Start.startApplication(Start.java:38)
at main.Start.main(Start.java:25)
Does anyone know what is wrong and how to fix this? I can't find anything on the net.