Login  Register

Re: Eclipse install of JOGL failed after following wiki instructions

Posted by Sven Gothel on Nov 28, 2012; 11:15am
URL: https://forum.jogamp.org/Eclipse-install-of-JOGL-failed-after-following-wiki-instructions-tp4027265p4027266.html

On 11/28/2012 11:31 AM, bsder [via jogamp] wrote:

> I'm on OS X 10.6.8, Eclipse Juno Service Release 1 and java -version returns:
> java version "1.6.0_37"
> Java(TM) SE Runtime Environment (build 1.6.0_37-b06-434-10M3909)
> Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01-434, mixed mode)
>
>
> I tried following the instructions for installing JOGL here:
> http://jogamp.org/wiki/index.php/Setting_up_a_JogAmp_project_in_your_favorite_IDE
>
> They really should be updated to reflect how to use jogamp-all-platforms.7z
> ... even better would be an export of an actual Eclipse JOGL project ...
> nevertheless ...
yup, sorry & thx.

>
> I managed to set up a JOGL project, and get through the "Order and Export"
> steps.  I created a new project, and made my project depend on the JOGL
> project.  Everything compiles fine.
>
> However, when I run it as a Java application I get:
>
> Catched ZipException: error in opening zip file, while
> TempJarCache.bootstrapNativeLib() of
> jar:file:/Users/andrewl/Desktop/ework/JOGL/jogamp-all-platforms/jar/gluegen-rt-android-natives-macosx-universal.jar!/
> (file:/Users/andrewl/Desktop/ework/JOGL/jogamp-all-platforms/jar/ +
> gluegen-rt-android-natives-macosx-universal.jar)
> Exception in thread "main" java.lang.UnsatisfiedLinkError: no gluegen-rt in
> java.library.path
>         at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1758)
>         at java.lang.Runtime.loadLibrary0(Runtime.java:823)
>         at java.lang.System.loadLibrary(System.java:1045)
Here, you probably have loaded gluegen-rt-android.jar, leading to attempt to load
gluegen-rt-android-natives-macosx-universal.jar, which doesn't exist.

Please 'only' use gluegen-rt.jar and jogl-all.jar for running/testing a desktop project,
or put the 'android' versions _after_ the desktop files.

As long the native jar files are in the same folder as the java jar files,
all should work them - no need to fiddle w/ native library environment options
or otherwise.

~Sven



signature.asc (909 bytes) Download Attachment