> Date: Wed, 16 Feb 2000 08:28:00 -0600
> From: Nicolas Thiessen <[EMAIL PROTECTED]>
> Subject: [JAVA3D] problem running from command line
> To: [EMAIL PROTECTED]
>
> I'm trying to run java3d on NT with J3D 1.2 opengl, i get the following
> errors when trying to run the program. Does anyone have any ideas why
> i'm getting these errors? or what to do to fix them, i can run the
> program under win98 and linux, but NT won't. This output is from the
> command line obviously, though i can run the program through JBuilder on
> NT with the jar files specified in libraries...
>
> thanks,
> nic.
>
> without 3d jar files in path:
>
> E:\java3dtest>java Java3dTest
> Exception in thread "main" java.lang.NoClassDefFoundError:
> javax/media/j3d/Canvas3D
>
I think this is a problem explained in our README:
NOTE: The Java2 SDK 1.2 installs Java into both the JDK location
(c:\jdk1.2.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.
>
> with 3d jar files in path:
>
> E:\java3dtest>java -cp
>
d:\jdk1.2.2\jre\lib\ext\j3dcore.jar;d:\jdk1.2.2\jre\lib\ext\j3dutils.jar;d:\jdk1
.2.2\jre\lib\ext\vecmath.jar;.
> Java3dTest
>
> Exception in thread "main" java.lang.UnsatisfiedLinkError: no J3D in
> java.library.path
> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1249)
> at java.lang.Runtime.loadLibrary0(Runtime.java:470)
> at java.lang.System.loadLibrary(System.java:778)
> at javax.media.j3d.MasterControl$1.run(MasterControl.java:373)
> at java.security.AccessController.doPrivileged(Native Method)
> at javax.media.j3d.MasterControl.<init>(MasterControl.java:370)
> at
> javax.media.j3d.VirtualUniverse.<clinit>(VirtualUniverse.java:550)
> at javax.media.j3d.Canvas3D.<clinit>(Canvas3D.java:457)
> at Java3dTest.<init>(Java3dTest.java:460)
> at Java3dTest.main(Java3dTest.java:557)
>
More from the README:
If, after installation, you get the following error message while
running a Java 3D program:
java.lang.UnsatisfiedLinkError: no J3D in shared library path
It is most likely because OpenGL and/or the OpenGL GLU utilities are
not installed on the machine.
For information on OpenGL and how to get it, see the OpenGL web page at
http://www.opengl.org/
Hopefully these will solve your problems.
Dan Petersen
Java 3D Team
Sun Microsystems
** Look for the newsgroup: comp.lang.java.3d **
===========================================================================
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".