hey, so I am just starting java3D, and I am running into some pretty basic problems... I started a tutorial online (from www.java3d.org) and the first sample program is:
import com.sun.j3d.utils.universe.SimpleUniverse;
import com.sun.j3d.utils.geometry.ColorCube;
import javax.media.j3d.BranchGroup;
public class Hello3d {
public Hello3d()
{
SimpleUniverse universe = new SimpleUniverse();
BranchGroup group = new BranchGroup();
group.addChild(new ColorCube(0.3));
universe.getViewingPlatform().setNominalViewingTransform();
universe.addBranchGraph(group);
}
public static void main( String[] args ) {
new Hello3d();
}
} // end of class Hello3d
with error output
java.lang.NoClassDefFoundError: javax/media/j3d/Node
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
at java.lang.Class.getMethod0(Class.java:2670)
at java.lang.Class.getMethod(Class.java:1603)
at edu.rice.cs.drjava.model.compiler.JavacCompiler.runCommand(JavacCompiler.java:251)
I think (and correct me if I'm wrong) that means that the the class definiton 'javax/media/j3d/Node' in 'javax/media/j3d' does not exist, and I have to install something else.
OR, i could just be wrong about what the problem is, and I am misinterpreting the output...
In any event, how do I fix this?