Login  Register

Re: Exporting

Posted by Xerxes Rånby on Apr 26, 2013; 8:24pm
URL: https://forum.jogamp.org/Exporting-tp4029053p4029057.html

JOGLbeginner wrote
Thank you for your quick reply!

Well it gave me a different error:
________________________
C:\Users\Roland\Desktop\Game>java -jar Game3.jar
Catched MalformedURLException: Could not open InputStream for URL 'rsrc:gluegen-
rt-natives-windows-amd64.jar', while TempJarCache.bootstrapNativeLib() of jar:rs
rc:gluegen-rt-natives-windows-amd64.jar!/ (rsrc: + gluegen-rt-natives-windows-am
d64.jar)
Exception in thread "main" java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoa
der.java:58)
Caused by: java.lang.UnsatisfiedLinkError: no gluegen-rt in java.library.path
  ...
Does that mean I'm missing a library element?
This means you need to include the gluegen-rt-natives-windows-amd64.jar (and jogl-all-natives-windows-amd64.jar) into your eclipse project before exporting in order for the native jars to be part of the exported application.
JogAmp adds support for multiple platforms by providing a set of native jars for each platform, in your case if fail to locate the windows-amd64 natives.

In your case JogAmp looks for the native jars inside the Game3.jar (its a zip file) because you have used option 2 while exporting the runnable jar using eclipse.