The problem & solution I am writing about is explained in the
Java3D README.Java3D-jdk.OpenGL.txt file, but I think it's
important to point out...


PROBLEM: You want to run any Java 3D demo or self written application,
start it up with "java MyDemo" or whatever and you get this

Exception in thread "main" java.lang.NoClassDefFoundError:
javax/media/j3d/Canvas3D
        at MyDemo.main(Compiled Code)

SOLUTION: The JDK2 will be installed into C:\jdk1.2.1 as well
as into the runtime location (c:\program files\javaSoft\Jre\1.2) and
it creates a shortcut in your system folder. This shortcut points
to the JRE location. If you install Java3D, it will be installed into
your JDK location (not JRE) by default. If you start an application
without any modifications to your PATH environment variable, the
java.exe shortcut from your system folder will be executed. As
it points to the JRE without Java3D, the exception is thrown.

To use your JDK installation (including Java3D) set the Path
to something like
  SET PATH=c:\jdk1.2.1\bin;%PATH%

so that the JDK java.exe is the first java.exe to be executed.

Thomas

=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/

Reply via email to