Re: Java 3D in eclipse Mac OSX not functioning
Posted by
gouessej on
Sep 03, 2014; 5:34pm
URL: https://forum.jogamp.org/Java-3D-in-eclipse-Mac-OSX-not-functioning-tp4033010p4033032.html
CMBR wrote
All .Jars are "only" in the same directory as my Main.class and I run the java commands as so
craigs-mbp:bin Craig$ java -cp gluegen-rt.jar:j3dcore.jar:j3dutils.jar:joal.jar:jogl-all.jar:vecmath.jar: Main -Djava.ext.dirs="" Main
JavaVM WARNING: JAWT_GetAWT must be called after loading a JVM
AWT not found
(-11, 2, -5)
Exception in thread "main" java.lang.NoClassDefFoundError: apple/awt/CGraphicsDevice
at javax.media.j3d.GraphicsConfigTemplate3D.<clinit>(GraphicsConfigTemplate3D.java:55)
at com.sun.j3d.utils.universe.SimpleUniverse.getPreferredConfiguration(SimpleUniverse.java:368)
at com.sun.j3d.utils.universe.Viewer.<init>(Viewer.java:348)
at com.sun.j3d.utils.universe.Viewer.<init>(Viewer.java:298)
at com.sun.j3d.utils.universe.SimpleUniverse.<init>(SimpleUniverse.java:215)
at com.sun.j3d.utils.universe.SimpleUniverse.<init>(SimpleUniverse.java:177)
at com.sun.j3d.utils.universe.SimpleUniverse.<init>(SimpleUniverse.java:88)
at Main.main(Main.java:170)
Caused by: java.lang.ClassNotFoundException: apple.awt.CGraphicsDevice
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 8 more
Really not seeing what i'm missing from your tutorial,
Please type "java -version" and tell me what it prints.
CMBR wrote
I appreciate your telling me that it simply won't run with Java3D 1.5 but I have only been using the jars from your tutorial and can't find any other jars which could be 1.5 anywhere, I also can't see the directories you talk about pointing to common places of 1.5.
Those directories are mentioned
in bold at the end of the "Download" subsection, refresh the page by pressing F5 or CTRL + R.