nic,

before starting your app, simply do a

        path c:\jdk1.2\jre\bin;c:\jdk1.2\bin;%path%   (assuming your jdk is at
c:\jdk1.2)

the problem is that the "java" executable in "jdk\bin" will not find the
j3d.jars located in "jdk\jre\lib\ext". only the "java" executable started
from "jdk\jre\bin" will find it.

best wishes,

-- julian

-----Original Message-----
From: Discussion list for Java 3D API
[mailto:[EMAIL PROTECTED]]On Behalf Of Nicolas Thiessen
Sent: Wednesday, February 16, 2000 3:28 PM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] problem running from command line


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




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)

===========================================================================
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".

===========================================================================
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