Gluegen-rt Can't find Natives on Eclipse

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Gluegen-rt Can't find Natives on Eclipse

Brenden
Hi.

I'm on OSX 10.7.5, Eclipse 3.8.0, using JDK 1.7.

I've followed this tutorial for setting up a user library for JOGL in my java project.
https://jogamp.org/wiki/index.php/Setting_up_a_JogAmp_project_in_your_favorite_IDE

I get this error message:
Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library: /Users/brendengarrison/Documents/workspace/jzy3d-15/natives/macosx-universal//gluegen-rt
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1854)
        at java.lang.Runtime.load0(Runtime.java:795)
        at java.lang.System.load(System.java:1062)
        at com.jogamp.common.jvm.JNILibLoaderBase.loadLibraryInternal(JNILibLoaderBase.java:624)
        at com.jogamp.common.jvm.JNILibLoaderBase.access$000(JNILibLoaderBase.java:63)
        at com.jogamp.common.jvm.JNILibLoaderBase$DefaultAction.loadLibrary(JNILibLoaderBase.java:106)
        at com.jogamp.common.jvm.JNILibLoaderBase.loadLibrary(JNILibLoaderBase.java:487)
        at com.jogamp.common.os.DynamicLibraryBundle$GlueJNILibLoader.loadLibrary(DynamicLibraryBundle.java:421)
        at com.jogamp.common.os.Platform$1.run(Platform.java:317)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.jogamp.common.os.Platform.<clinit>(Platform.java:287)
        at com.jogamp.opengl.GLProfile.<clinit>(GLProfile.java:147)
        at org.jzy3d.chart.Settings.detectProfile(Settings.java:30)
        at org.jzy3d.chart.Settings.<init>(Settings.java:14)
        at org.jzy3d.chart.Settings.getInstance(Settings.java:47)
        at org.jzy3d.analysis.AnalysisLauncher.open(AnalysisLauncher.java:17)
        at org.jzy3d.analysis.AnalysisLauncher.open(AnalysisLauncher.java:13)
        at Test15.main(Test15.java:18)

My gluegen-rt-2.3.3.jar, gluegen-2.3.2.jar, and jogl-all-2.3.2.jar are in a folder called /jzy3d-newDependencies, as are my natives: gluegen-rt-natives-macosx-universal.jar and jogl-all-natives-macosx-universal.jar.

I left the natives out of the classpath, as instructed by the tutorial, but I'm not sure if I understood the instructions given that I'm receiving this error message.
Reply | Threaded
Open this post in threaded view
|

Re: Gluegen-rt Can't find Natives on Eclipse

Brenden
This was for installing jzy3d. The problem was that jzy3d comes with outdated dependencies. The natives were all a different version than the other jars.
Reply | Threaded
Open this post in threaded view
|

Re: Gluegen-rt Can't find Natives on Eclipse

gouessej
Administrator
In reply to this post by Brenden
Hey

Try to use jogamp-fat.jar instead. If it doesn't work, it probably means that your version of OS X is too old. Mac OS X Lion is terribly outdated and supporting OS X in general is sometimes a nightmare, we do our best.
Julien Gouesse | Personal blog | Website