> Hi:
>
> I just downloaded 3d Java and tested on my Windows NT pc.  Strangely enough,
some samples run OK but some do not.  For example the first sample I test is
"Appearance", I get following error message
> "java AppearanceTest
> java.lang.NoClassDefFoundError: javax/media/j3d/Bounds
> Exception in thread "main""
>
> I further tested the program and I get even more frustrated.  The program I
modified as follows:
>
.
.
.
>
> // error msg when I execute the program
> /*cd d:/JavaBook/java3d/Appearance/
> java MyAppearance
> java.lang.NoClassDefFoundError: javax/vecmath/Color3f
> Exception in thread "main"
> Compilation exited abnormally with code 1 at Wed Jun 23 15:04:05
> */
>
> Any setting wrong with JDK or Java3D? Thanks a lot.

Getting a NoClassDefFoundError means that you are using a JDK that does not
have Java 3D installed into it.  The fact that you get some programs to
run is rather odd as that means some programs did find the Java 3D
files.  As a first step I would verify that the following problem,
described in the README, is not happening:

  NOTE: The Java2 SDK 1.2 installs Java into both the JDK location
  (c:\jdk1.2 by default) and into the JRE location
  (C:\Program Files\JavaSoft\Jre\1.2 by default).  Additionally, a
  shortcut to java.exe is installed in the WINNT/System32 (for NT
  systems) or Windows/System (for Windows 95 & 98) directory.
  Developers need to be aware of this when working with the Java2 1.2 SDK.
  Unless the path to the 1.2 SDK bin directory is placed in the PATH
  environment variable ahead of the system directory, the SDK java.exe
  will not be executed.  If any extensions (such as Java 3D) are only
  installed into the SDK and not the JRE as well, then these extensions
  will not be found during program execution.

(for JDK 1.2.1, by default the SDK is installed into c:\jdk1.2.1).

Dan Petersen
Java 3D Team
Sun Microsystems

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to