0

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?

4

1 回答 1

1

仅仅因为您在 shell 的类路径中有它,并不意味着它包含在 ant 用于构建的类路径中。有一个<property>可以设置在targetant 指定的内部。

确保您需要的所有 jar 都在该类路径中。

于 2013-07-10T03:05:07.103 回答