i would like to export runnable jar through eclipse as explained -> http://jogamp.org/wiki/index.php/JogAmp_JAR_File_Handling. First approach is working, but second isn't.
i get following error, while running jar: ezekiel@vm-ubuntu:~/Pulpit/workspace/pso/lib$ /home/ezekiel/Pulpit/jdk1.7.0_40/jre/bin/java' -jar '/home/ezekiel/Pulpit/pso-1.0.jar' Catched URISyntaxException: Expected scheme-specific part at index 5: rsrc:, while TempJarCache.bootstrapNativeLib() of null (null + gluegen-rt-natives-linux-amd64.jar) Exception in thread "main" java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58) Caused by: java.lang.UnsatisfiedLinkError: Can't load library: /home/ezekiel/Pulpit/workspace/pso/lib/libgluegen-rt.so at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1846) at java.lang.Runtime.load0(Runtime.java:795) at java.lang.System.load(System.java:1061) at com.jogamp.common.jvm.JNILibLoaderBase.loadLibraryInternal(JNILibLoaderBase.java:468) at com.jogamp.common.jvm.JNILibLoaderBase.access$000(JNILibLoaderBase.java:63) at com.jogamp.common.jvm.JNILibLoaderBase$DefaultAction.loadLibrary(JNILibLoaderBase.java:94) at com.jogamp.common.jvm.JNILibLoaderBase.loadLibrary(JNILibLoaderBase.java:332) at com.jogamp.common.os.DynamicLibraryBundle$GlueJNILibLoader.loadLibrary(DynamicLibraryBundle.java:390) at com.jogamp.common.os.Platform$1.run(Platform.java:210) at java.security.AccessController.doPrivileged(Native Method) at com.jogamp.common.os.Platform.<clinit>(Platform.java:173) at javax.media.opengl.GLProfile.<clinit>(GLProfile.java:82) at javax.media.opengl.awt.GLCanvas.<init>(GLCanvas.java:247) at javax.media.opengl.awt.GLCanvas.<init>(GLCanvas.java:197) at javax.media.opengl.awt.GLCanvas.<init>(GLCanvas.java:187) at com.home.pso.Uruchom.main(Uruchom.java:74) im running windows 7 64bit(linux 64bit too), java 64bit, eclipse 4.3, and latest jogl libriary. What am i doing wrong? as ive heard this approch should work. |
This post was updated on .
after few hours of checking diffrent things i realized its a bug.
some previous release of jogl is working correctly. EDIT: it stopped working between: gluegen_671-joal_436-jogl_993-jocl_796/ gluegen_686-joal_448-jogl_1011-jocl_810/ aggregated builds |
Administrator
|
Hi
There is a bug caused by the use of URIs but I thought it didn't affect GNU Linux. Keep in mind that the use of fat JARs is a bad idea because it can be really painful for the end users (conflicts with the default archiver when double-clicking, modification of the JAR itself when downloading it with some versions of Firefox, ...).
Julien Gouesse | Personal blog | Website
|
Administrator
|
In reply to this post by ezekiel
On 09/22/2013 02:13 PM, ezekiel [via jogamp] wrote:
> i would like to export runnable jar through eclipse as explained -> > http://jogamp.org/wiki/index.php/JogAmp_JAR_File_Handling. First approach is > working, but second isn't. > > i get following error, while running jar: > ezekiel@vm-ubuntu:~/Pulpit/workspace/pso/lib$ > /home/ezekiel/Pulpit/jdk1.7.0_40/jre/bin/java' -jar > '/home/ezekiel/Pulpit/pso-1.0.jar' how about: /home/ezekiel/Pulpit/jdk1.7.0_40/jre/bin/java' -jar 'file:///home/ezekiel/Pulpit/pso-1.0.jar' ? As Julien suggested .. URIs might be the culprit ? (They were used recently instead of URLs to avoid DNS lookups) Pls file a bug report! Maybe you are also able to track down the issue and even fix it ? Thank you, Sven signature.asc (911 bytes) Download Attachment |
Free forum by Nabble | Edit this page |