Discussion:
Java 1.5.0, and Java3D
(too old to reply)
Andrew Neiderer
2005-05-23 13:59:40 UTC
Permalink
The latest Java 1.5.0_03 was recently installed on our machines and now
my Java3D programs are broken. It has been over a year since I have done
anything with the Java3D applications (not by choice :-( but now I
must get my programs working again. It seems to me I copied about 4 jar
files to a subdirectory which I now forget. Or maybe I have to change
my import section. Here are a few of the errors -

$ /usr/java/jdk1.5.0_03/bin/javac HelloUniverse.java

HelloUniverse.java:46: package com.sun.j3d.utils.applet does not exist
import com.sun.j3d.utils.applet.MainFrame;

HelloUniverse.java:47: package com.sun.j3d.utils.geometry does not exist
import com.sun.j3d.utils.geometry.ColorCube;

HelloUniverse.java:48: package com.sun.j3d.utils.universe does not exist
import com.sun.j3d.utils.universe.*;

HelloUniverse.java:49: package javax.media.j3d does not exist
import javax.media.j3d.*;

HelloUniverse.java:50: package javax.vecmath does not exist^M
import javax.vecmath.*;^M

HelloUniverse.java:54: cannot find symbol
symbol : class SimpleUniverse
location: class HelloUniverse
private SimpleUniverse u = null;

.
.
.


Can someone see and tell me what needs to be done, assuming I have
given enough information. Or maybe you could give me a URL for getting
Java 1.5 working with Java3D.

Any advice is appreciated.

Thank you.

- Andrew M. Neiderer
***@arl.army.mil
Paul Rhiem
2005-05-23 22:16:15 UTC
Permalink
Post by Andrew Neiderer
Can someone see and tell me what needs to be done, assuming I have
given enough information. Or maybe you could give me a URL for getting
Java 1.5 working with Java3D.
Hi!

Have you re-installed Java 3D, too? I ask, because these are typical error
messages, if the compiler does not find the correponding java 3d classes.

Java3d must be installed into the existing java directory - on your system
it seems to be /usr/java/jdk1.5.0_03.
So first download java3d as a .bin file from
http://java.sun.com/products/java-media/3D/.

Then change to your java directory and type ./path_to_file/name_of_file.bin.
This installs java3d and everything should be fine.


- Paul

Loading...