PDA

View Full Version : Has anybody managed to run WWJ on JWM 1.6.0_04 on OSX?


emaronchi
03-01-2008, 09:58 AM
Hi, I have just installed the Java 1.6 developer preview (on developer.apple.com) and set it as default JVM on NetBeans. It compiles well, but I get an error when I run the application

Java run-time version: 1.6.0_04-dp
NASA World Wind Java Alpha 4.1 0.4.1
Exception in thread "main" java.lang.UnsatisfiedLinkError: /Users/rc2/WWJ_APP/libjogl.jnilib:
at java.lang.ClassLoader$NativeLibrary.load (Native Method)
at java.lang.ClassLoader.loadLibrary0(Class Loader.java:1822)
at java.lang.ClassLoader.loadLibrary(ClassL oader.java:1739)
at java.lang.Runtime.loadLibrary0(Runtime.j ava:823)
at java.lang.System.loadLibrary(System.java :1030)
at com.sun.opengl.impl.NativeLibLoader.load LibraryInternal(NativeLibLoader.java:189 )
at com.sun.opengl.impl.NativeLibLoader.acce ss$000(NativeLibLoader.java:49)
at com.sun.opengl.impl.NativeLibLoader$Defa ultAction.loadLibrary(NativeLibLoader.ja va:80)
at com.sun.opengl.impl.NativeLibLoader.load Library(NativeLibLoader.java:103)
at com.sun.opengl.impl.NativeLibLoader.acce ss$200(NativeLibLoader.java:49)
at com.sun.opengl.impl.NativeLibLoader$1.ru n(NativeLibLoader.java:111)
at java.security.AccessController.doPrivile ged(Native Method)
at com.sun.opengl.impl.NativeLibLoader.load Core(NativeLibLoader.java:109)
at com.sun.opengl.impl.macosx.MacOSXGLDrawa bleFactory.<clinit>(MacOSXGLDrawableFactory.java:53)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at javax.media.opengl.GLDrawableFactory.get Factory(GLDrawableFactory.java:108)
at javax.media.opengl.GLCanvas.chooseGraphi csConfiguration(GLCanvas.java:520)
at javax.media.opengl.GLCanvas.<init>(GLCanvas.java:131)
at javax.media.opengl.GLCanvas.<init>(GLCanvas.java:90)
at gov.nasa.worldwind.awt.WorldWindowGLCanv as.<init>(WorldWindowGLCanvas.java:52)
at IES.WWJCanvas.<init>(WWJCanvas.java:43)
at IES.WWJ_APP.main(WWJ_APP.java:48)
Java Result: 1
BUILD SUCCESSFUL (total time: 7 seconds)

Did I configure the VM wrong or is this a known issue?

cheers

Lele

fabrizio.giudici
03-01-2008, 03:59 PM
I you are running the JVM 6 on Mac OS X, this means you're using the 64-bit version (Apple didn't release a 32-bit version so far). Have you upgraded the dynamic libraries for JOGL and GlueGen to 64 bit? I bet they are still the 32-bit ones, and this explains why the VM can't find them.

emaronchi
03-12-2008, 12:01 AM
yes you are most probably right. Where do I get the appropriate 64bit jogl and gluegen libraries for Leopard ? This is probably a silly question but.. :rolleyes:

thanks!

Lele

fabrizio.giudici
03-12-2008, 12:07 AM
It's not silly, rather a € 100,000 question! I think you should ask to the JOGL mailing lists...

emaronchi
05-06-2008, 12:18 PM
Any luck with java 6? now Apple has released an update to 1.6 and I found a link for jogl on os x

http://www.infostuka.org/2008/4/30/java-1-6-jogl-issues-on-mac-os-x

Since I don't fully understand how it works, maybe somebody should have a look at this first :)

let me know!

cheers

Lele

workingDog
05-06-2008, 02:17 PM
I got worldwind working on the mac with java 1.6.

I downloaded the opengl from http://www.infostuka.org/2008/4/30/j...es-on-mac-os-x
use the libraries gluegen-rt.jar and jogl.jar (I'm using netbeans) instead of the ones packaged with wwj. And it worked.

Although I always have to delete the applet classes. Don't know where the netscape stuff is.

slade
05-06-2008, 03:30 PM
Although I always have to delete the applet classes. Don't know where the netscape stuff is.

The netscape stuff is in plugin.jar in your jre's lib folder.

emaronchi
05-06-2008, 06:39 PM
looks like the link has been pulled, no idea why. workingDog can you attach it to a message? Also please explain what you did to get it to work in netbeans :)

workingDog
05-07-2008, 09:57 AM
attached are the opengl files.

I realise now that those files are probably not needed. All I did to compile and run wwj was this: in netbeans, rigth mouse click on the worldwind project select properties->libraries->compile panel->add-jar glugen-rt.jar and jogl.jar files that came with worldwind and it works just as well.

So I guess you may have problem not related to opengl and the new (to mac) java 6.

Thanks for the tip on the netscape jar. All I have to do now is to locate the jre lib folder.

workingDog
05-07-2008, 11:49 AM
sorry, the opengl.zip attachment did not work. The system does not let me upload the attachment for some reason. I'll try again later.:mad:

Achaiah
05-07-2008, 02:27 PM
workingDog,

If you're still looking for plugin.jar it's in this directory on the mac: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/lib/

I had the same problem with needing that jar.