Login  Register

Re: ZipException when loading native jars

Posted by Winder on Feb 25, 2013; 7:10pm
URL: https://forum.jogamp.org/ZipException-when-loading-native-jars-tp4027387p4028369.html

Is the change in jogamp or your onejar project?  I'm having the same issue, so thanks for already doning the heavy lifting!


Catched FileNotFoundException: \UniversalGcodeSender-all64.jar (The system cannot find the file specified), while  TempJarCache.bootstrapNativeLib() of jar:file:/UniversalGcodeSender-all64.jar!/lib/gluegen-rt-natives-windows-amd64.jar!/ (file:/UniversalGcodeSender-all64.jar!/lib/ + gluegen-rt-natives-windows-amd64.jar)
Exception in thread "AWT-EventQueue-0" 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(JNILibLoaderBase.java:442)
        at com.jogamp.common.jvm.JNILibLoaderBase.access$000(JNILibLoaderBase.java:59)
        at com.jogamp.common.jvm.JNILibLoaderBase$DefaultAction.loadLibrary(JNILibLoaderBase.java:90)
        at com.jogamp.common.jvm.JNILibLoaderBase.loadLibrary(JNILibLoaderBase.java:328)
        at com.jogamp.common.os.DynamicLibraryBundle$GlueJNILibLoader.loadLibrary(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 com.willwinder.universalgcodesender.visualizer.VisualizerCanvas.<init>(VisualizerCanvas.java:99)
        ...

ryanmohr wrote
It ended up being a one or two line change to the source to be able to load
the libraries as needed on our own so we just went that route.


On Thu, Feb 21, 2013 at 2:25 AM, gouessej [via jogamp] <
[hidden email]> wrote:

> Does the single fat JAR approach work fine now with JOGL? It might be
> interesting even with Java Web Start and trusted certificates because the
> OCSP server can be slow and using multiple JARs means that you will have
> multiple OCSP requests.
> Julien Gouesse | Personal blog <http://gouessej.wordpress.com> | Website<http://tuer.sourceforge.net>| Follow
> me on Identi.ca <http://identi.ca/gouessej>
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://forum.jogamp.org/ZipException-when-loading-native-jars-tp4027387p4028311.html
>  To unsubscribe from ZipException when loading native jars, click here<http://forum.jogamp.org/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4027387&code=cnlhbi5tb2hyQGdtYWlsLmNvbXw0MDI3Mzg3fC0xMDUwMzE2MDI3>
> .
> NAML<http://forum.jogamp.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>