Login  Register

Re: Java 3D in eclipse Mac OSX not functioning

Posted by everythingConnected on Jan 29, 2015; 5:18pm
URL: https://forum.jogamp.org/Java-3D-in-eclipse-Mac-OSX-not-functioning-tp4033010p4033955.html

Hi
I am having a similar problem to this thread and have just spent all day following your instructions without success.

I have a Java 3D application I wrote which I am trying to get to work on a Mac. It is packaged in a jar.

This was written in quite old java3d but still runs fine on my pc.

I have installed:
gluegen-rt-natives-universal.jar
gluegen-rt.jar
j3dcore.jar
j3dutils.jar
joal-natives-macosx-universal.jar
joal.jar
jogl-all-natives-macosx-universal.jar
jogl-all.jar
vecmath.jar

into a folder called Java3D straight onto the system with path only "Macintosh HD" then "Java3D"

and am trying to run using:
java -cp .:/Java3D/gluegen-rt.jar:.:/Java3D/j3dcore.jar:.:/Java3D/j3dutils.jar:.:/Java3D/joal.jar:/Java3D/jogl-all.jar:.:/Java3D/vecmath.jar: -jar MyJar.jar

but get the error:
JavaVM WARNING: JAWT_GetAWT must be called after loading a JVM
AWT not found
Exception in thread "main" java.lang.NoClassDefFoundError: apple/awt/CGraphicsDevice
        at javax.media.j3d.GraphicsConfigTemplate3D.<clinit>(GraphicsConfigTemplate3D.java:55)

Any help gratefully received. I am only trying to get this to work on a mac for a friend, am not very good with the command line use of a mac and am frustrated at having spent a day on this problem, and have tried to follow your instructions in your blog as well as possible.

Thanks in advance