Hello-
I'm trying to compile a Java3D application under NetBeans, and I get an error on the statement:
import javax.media.j3d;
saying that javax.media does not exist.
(I have installed the java 3D 1.5.1 API.)
Can you help me?
Thanks.
-Scott
Printable View
Hello-
I'm trying to compile a Java3D application under NetBeans, and I get an error on the statement:
import javax.media.j3d;
saying that javax.media does not exist.
(I have installed the java 3D 1.5.1 API.)
Can you help me?
Thanks.
-Scott
Those packages are not on your classpath.
https://j3d-core.dev.java.net/
Add the library to your project and/or your classpath.
Thank you all for your help.
I'm pretty good at writing java code, but it's been a while since I've explicitly dealt with the classpath.
I'm using NetBeans.
I assume I have to customize my configuration, and add an Argument.
I also noticed that my installation has some Java3D jar files, in the directory C:\Program Files\Java\Java3D\1.5.1\lib\ext. (Three of them: j3dcore.jar, j3dutils.jar, vecmath.jar.)
So I added this argument:
-classpath "c:/Program Files/Java/Java3D/1.5.1/lib/ext/j3dcore.jar"
But it's still not finding the package.
Also I'm concerned that adding a classpath argument this way will invalidate the default classpath.
Your help is appreciated.
-scott
if you are using netbeans then just add the jar as a library to your project.
Right click on your project -> Properties -> Libraries -> Add JAR/Folder -> ...
but your solution only to current project ..... each time i create a java3d program i need to include those JAR file.... is there any global solution for this issue...