I am building a piece of software that depends on the java3d package. When compiling, I get the following error messages.
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6
ViewManager.java:162: error: package javax.media.j3d does not exist
And many other errors indicating that none of the java3d packages exist or are at least accessible. However, if I echo $CLASSPATH
, I get the following output.
.:/myhome/j3d/lib/ext/j3dcore.jar:/myhome/j3d/lib/ext/j3dutils.jar:/myhome/j3d/lib/ext/vecmath.jar
which indicates, at least to me, that java3d is installed correctly and accessible. I am building this project from ant. Is there something I am missing in order to compile dependent jars from within ant?
Just because you have it on your shell's classpath, does not mean it is included in the classpath that is used to build by ant. There is a <property>
that can be set inside of a target
specified by ant.
Make sure all the jars you need are inside that classpath.