I update from rc5 direct to rc10,I download jogamp-all-platforms,and add all the jars through "add external jars" in eclipse project.
when I run the application ,I got the error bellow. When I use rc5 ,there is no problem when I add all the jars of rc5! Catched FileNotFoundException: C:\Users\Akira\Desktop\jogamp-all-platforms\jogamp-all-platforms\jar\gluegen-natives-windows-amd64.jar (系统找不到指定的文件。), while TempJarCache.bootstrapNativeLib() of jar:file:/C:/Users/Akira/Desktop/jogamp-all-platforms/jogamp-all-platforms/jar/gluegen-natives-windows-amd64.jar!/ (file:/C:/Users/Akira/Desktop/jogamp-all-platforms/jogamp-all-platforms/jar/ + gluegen-natives-windows-amd64.jar) Exception in thread "main" java.lang.UnsatisfiedLinkError: no gluegen-rt in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1738) at java.lang.Runtime.loadLibrary0(Runtime.java:823) at java.lang.System.loadLibrary(System.java:1028) at com.jogamp.common.jvm.JNILibLoaderBase.loadLibraryInternal(JNILibLoaderBase.java:454) 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$2.run(Platform.java:249) at java.security.AccessController.doPrivileged(Native Method) at com.jogamp.common.os.Platform.loadGlueGenRTImpl(Platform.java:231) at com.jogamp.common.os.Platform.<clinit>(Platform.java:183) at javax.media.opengl.GLProfile.<clinit>(GLProfile.java:99) at app.browser.JOGLBrowserCanvas.getCaps(JOGLBrowserCanvas.java:34) at app.browser.JOGLBrowserCanvas.<init>(JOGLBrowserCanvas.java:26) at app.browser.JOGLBrowserPanel.<init>(JOGLBrowserPanel.java:66) at app.browser.JOGLBrowser.createHomePageBrowserPanel(JOGLBrowser.java:140) at app.browser.JOGLBrowser.initBrowserPanels(JOGLBrowser.java:208) at app.browser.JOGLBrowser.init(JOGLBrowser.java:86) at app.browser.JOGLBrowserBaseFrame.initComponents(JOGLBrowserBaseFrame.java:87) at app.browser.JOGLBrowserBaseFrameSharePool.newBaseFrame(JOGLBrowserBaseFrameSharePool.java:189) at app.browser.JOGLBrowserBaseFrameSharePool.newBaseFrame(JOGLBrowserBaseFrameSharePool.java:158) at app.browser.JOGLBrowserStarter.<init>(JOGLBrowserStarter.java:22) at app.browser.JOGLBrowserApp.<init>(JOGLBrowserApp.java:72) at app.browser.JOGLBrowserApp.main(JOGLBrowserApp.java:111) |
You need to use gluegen-rt.jar instead
of gluegen.jar when you run your application.
After that change your application will find the natives. cheers xerxes 2012-08-29 09:49, robbiezl [via jogamp] skrev: I update from rc5 direct to rc10,I download jogamp-all-platforms,and add all the jars through "add external jars" in eclipse project. |
In reply to this post by robbiezl
i found glugen.jar cause the problem,what does this jar use for?
|
2012-08-29 10:29, robbiezl [via jogamp]
skrev:
i found glugen.jar cause the problem,what does this jar use for? gluegen is the key technology we use to A) using gluegen.jar to generate all the JOGL bindings during compilation of jogamp project from OpenGL C headers. B) using gluegen-rt.jar to connect to the system installed libGL.so or gl.dll at runtime up to java level and verify that the loaded system library contains the functions that we expect it to. gluegen heavily reduces error prone mainual maintance of creating the JOGL OpenGL bindings, intead we let the computer do all the boring work :) http://jogamp.org/gluegen/www/
|
In reply to this post by robbiezl
To fix your bug use gluegen-rt.jar instead of gluegen.jar,
after you make the switch then your application will find the native jars at runtime. |
Administrator
|
In reply to this post by robbiezl
It's mentionned in the wiki, use gluegen-rt as Xerxes said:
http://jogamp.org/jogl/doc/deployment/JOGL-DEPLOYMENT.html
Julien Gouesse | Personal blog | Website
|
Free forum by Nabble | Edit this page |