JogAmp gluegen-rt找不到本地库

时间:2018-02-06 17:10:21

标签: java eclipse native jogl jzy3d

我在OSX 10.7.5,Eclipse 3.8.0上,使用JDK 1.7。我正在尝试使用jzy3d和JogAmp构建一个项目:特别是jogl,gluegen和gluegen-rt。

我已经按照本教程在我的java项目中为JOGL设置了一个用户库。 https://jogamp.org/wiki/index.php/Setting_up_a_JogAmp_project_in_your_favorite_IDE

我收到此错误消息:

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) 

我的gluegen-rt-2.3.3.jar,gluegen-2.3.2.jar和jogl-all-2.3.2.jar位于名为/ jzy3d-newDependencies的文件夹中,我的本地人也是如此:gluegen-rt -natives-macosx-universal.jar和jogl-all-natives-macosx-universal.jar。

我按照教程的指示将本机离开了类路径,但是我不确定我是否理解了指示我收到此错误消息的说明。我需要在哪里放置本机,以便gluegen-rt可以找到它们?

1 个答案:

答案 0 :(得分:0)

由于我使用的是JogAmp 2.3.2,因此我必须使用2.3.2的更新本机,可在此处下载:http://search.maven.org/#search%7Cga%7C2%7Cjogamp

Jzy3d带有过时的本地人。