Java3D与Eclipse的环境搭建问题,顺利安装JDK,Eclipse,java3d,并编了一个小程序 出错如下:

Exception in thread "main" java.lang.Error: Unresolved compilation problems:
Access restriction: The type BranchGroup is not accessible due to restriction on required library C:\Program Files\Java\jdk1.6.0\jre\lib\ext\j3dcore.jar
Access restriction: The constructor BranchGroup() is not accessible due to restriction on required library C:\Program Files\Java\jdk1.6.0\jre\lib\ext\j3dcore.jar
Access restriction: The type BranchGroup is not accessible due to restriction on required library C:\Program Files\Java\jdk1.6.0\jre\lib\ext\j3dcore.jar
Access restriction: The type Transform3D is not accessible due to restriction on required library C:\Program Files\Java\jdk1.6.0\jre\lib\ext\j3dcore.jar
Access restriction: The constructor Transform3D() is not accessible due to restriction on required library C:\Program Files\Java\jdk1.6.0\jre\lib\ext\j3dcore.jar
Access restriction: The type Transform3D is not accessible due to restriction on required library C:\Program Files\Java\jdk1.6.0\jre\lib\ext\j3dcore.jar
Access restriction: The type Transform3D is not accessible due to restriction on required library C:\Program Files\Java\jdk1.6.0\jre\lib\ext\j3dcore.jar
Access restriction: The constructor Transform3D() is not accessible due to restriction on required library C:\Program Files\Java\jdk1.6.0\jre\lib\ext\j3dcore.jar
Access restriction: The type Transform3D is not accessible due to restriction on required library C:\Program Files\Java\jdk1.6.0\jre\lib\ext\j3dcore.jar
Access restriction: The method rotY(double) from the type Transform3D is not accessible due to restriction on required library C:\Program Files\Java\jdk1.6.0\jre\lib\ext\j3dcore.jar
Access restriction: The method rotX(double) from the type Transform3D is not accessible due to restriction on required library C:\Program Files\Java\jdk1.6.0\jre\lib\ext\j3dcore.jar
Access restriction: The method mul(Transform3D) from the type Transform3D is not accessible due to restriction on required library C:\Program Files\Java\jdk1.6.0\jre\lib\ext\j3dcore.jar
Access restriction: The method setRotation(AxisAngle4d) from the type Transform3D is not accessible due to restriction on required library C:\Program Files\Java\jdk1.6.0\jre\lib\ext\j3dcore.jar
Access restriction: The constructor AxisAngle4d(double, double, double, double) is not accessible due to restriction on required library C:\Program Files\Java\jdk1.6.0\jre\lib\ext\vecmath.jar
Access restriction: The type AxisAngle4d is not accessible due to restriction on required library C:\Program Files\Java\jdk1.6.0\jre\lib\ext\vecmath.jar
Access restriction: The method setScale(Vector3d) from the type Transform3D is not accessible due to restriction on required library C:\Program Files\Java\jdk1.6.0\jre\lib\ext\j3dcore.jar

在project的 build path 中先移除所有jar包,再重新加进来,重新编译。
温馨提示:内容为网友见解,仅供参考
第1个回答  2011-04-30
java 3D没有使用过追问

但是我已经装好了呀,import都没有显示错误。。

第2个回答  2011-04-30
qu jar 包,jdk 环境 Eclipse在从新设置追问

bu hui ya 55~

相似回答
大家正在搜