Dear friends,
I tried to install Java3D in a new computer, which is linux system,
but the windows 2000 is based on Vmware, so I use the win2000.
Now the problem is, I can use javac to produce HelloJava3Da.class, but
when I try to run"java HelloJava3Da", computer told me:
C:\download>java HelloJava3Db
Exception in thread "main" java.lang.NoClassDefFoundError:
HelloJava3Db (wrong n
ame: untitled1/HelloJava3Db)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
I really wonder why. Do you have the same problem? many thanks.
tony
bart59 - 16 Oct 2003 18:14 GMT
is c:/download is in your classpath ?
> Dear friends,
>
[quoted text clipped - 22 lines]
> I really wonder why. Do you have the same problem? many thanks.
> tony
tony lincoln - 17 Oct 2003 11:15 GMT
Now I know the reason why "java HelloJava3Da" can not work: in the 1st
line of java codes, there is "package abc;", and JVM can not recognize
this. If I remove it and compile it again, it will work.
But the new question is, the display mode for this win2000 is only
high color(16bit), and the 3D objects can not be displayed in the
screen. Do you have any idea about the relationship between java3d and
display mode?
Many thanks.
tony