Hi Anders,
I'm having the exact same problem.
Environment: JDK 1.2(latest); Java3D 1.1(latest) CLASSPATH unset; PATH set to
C:\jdk1.2\bin;
All the applets work fine but the applications don't work with the same error
as you had below.
C:\jdk1.2\demo\java3d\HelloUniverse>java HelloUniverse
Exception in thread "main" java.lang.NoClassDefFoundError:
javax/media/j3d/SceneGraphObject
What is the solution here? How/What needs to be set to run the applications??
Ken Warner
Anders Backman wrote:
> I cant get Java3D to run on my PC.
>
> I have installed jdk1.2 in c:\jdk1.2 (default dir).
> Java3d in the same directory.
>
> All the JRE goes to c:\program files\javasoft\jre (also default).
>
> When I first try to run java HelloUniverse I get:
>
> C:\jdk1.2\demo\java3d\HelloUniverse>java HelloUniverse
> Exception in thread "main" java.lang.NoClassDefFoundError:
> javax/media/j3d/Scene
> GraphObject
>
> classpath is set to .
>
> When I have CLASSPATH set to: set CLASSPATH=c:\jdk1.2\jre\lib\ext\
> (where all the java3d jar-files are) I still get the same problem.
>
> When I look in to the c:\program files\javasoft\jre\lib\ext all the java3d
> files are missing.
> So I just copied the jar-files from: c:\jdk1.2\jre\lib\ext\ to c:\program
> files\javasoft\jre\lib\ext
>
> and voil� I got a new problem:
>
> C:\jdk1.2\demo\java3d\HelloUniverse>java HelloUniverse
> Exception in thread "main" java.lang.UnsatisfiedLinkError: no J3D in
> java.librar
> y.path
> at java.lang.ClassLoader.loadLibrary(Compiled Code)
> at java.lang.Runtime.loadLibrary0(Runtime.java:470)
> at java.lang.System.loadLibrary(System.java:745)
> at javax.media.j3d.UniverseManager$1.run(UniverseManager.java:155)
> at java.security.AccessController.doPrivileged(Native Method)
> at javax.media.j3d.UniverseManager.<init>(Compiled Code)
> at javax.media.j3d.VirtualUniverse$2.run(VirtualUniverse.java:468)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> javax.media.j3d.VirtualUniverse.<clinit>(VirtualUniverse.java:464)
> at HelloUniverse.<init>(HelloUniverse.java:81)
> at HelloUniverse.main(HelloUniverse.java:104)
>
> This time with CLASSPATH set to .
>
> Any ideas?
> I experienced no problems during the installation.
>
> All jdk1.2 demos are working.
>
> /Anders Backman
>
> ===================================================================
> To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
> Java 3D Home Page: http://java.sun.com/products/java-media/3D/
�����������������������
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/