在Eclipse上安装Java3D [英] Installing Java3D on Eclipse
问题描述
如果这是一个非常糟糕的问题,我很抱歉,但我似乎找不到最近有足够的教程,介绍如何在Mac OSX 10.6.6的Eclipse 3.6.0上安装Java3D。如果有人知道一个好的教程,或者你可以给我指示,请这样做。谢谢!
要将jar添加到特定项目的类路径:
- 在项目资源管理器视图中右键单击(或cmd单击mac?)项目,然后选择属性> Java构建路径>库> 。
- 点击添加外部类文件夹...按钮 $ b $添加文件夹\System\Library\Java\Extensions b
编辑:
我会建议以下内容,您已安装JDK(1.5.0或更高版本)
- 您有Eclipse for Java或安装了Java EE开发人员(不是Eclipse Classic)
- 您可以构建一个香草,HelloWorld Java应用程序已经
基本上,听起来您可能没有将Java 3D api添加到您的JRE中。您在原始问题中链接的下载包含一个名为README-unzip.html的帮助文件,该帮助文件是从以下位置获取以下说明:
将java3d-1_5_1-XXX.zip下载到临时目录,例如
/ tmp
将java3d-1_5_1-XXX.zip解压缩到/ tmp中,如下所示:
cd / tmp
解压缩java3d-1_5_1 - *。zip
这将创建一个java3d-1_5_1-XXX子目录在
/ tmp中,下载的文件可以是
。手动
安装所需的文件是j3d-jre.zip。
将Java 3D 1.5.1解压缩到jre目录中的JDK。对于
示例,如果您的JDK在
/usr/java/jdk1.6.0_01/jre中,则
执行以下操作:cd /usr/java/jdk1.6.0_01/jre
unzip /tmp/java3d-1_5_1-*/j3d-jre.zip
验证j3dcore.jar,j3dutils.jar和vecmath.jar文件
最终在
/usr/java/jdk1.6.0_01/jre/lib/ext
Sorry in advance if this is a really bad question, but I can't seem to find a recent enough tutorial on how to install Java3D on Eclipse 3.6.0 for Mac OSX 10.6.6. If anyone knows where a good tutorial is, or if you can give me instructions, please do so. Thanks!
To add the jar's to a specific project's classpath:
- Right-click (or cmd-click on mac?) your project in the Project Explorer view and choose Properties > Java Build Path > Libraries.
- Add the folder "\System\Library\Java\Extensions" by clicking the "Add External Class Folder..." button
EDIT:
I would suggest the following, given that
- you have the JDK (version 1.5.0 or higher) installed
- you have Eclipse for Java or Java EE developers installed (not Eclipse Classic for example)
- you can build a vanilla, HelloWorld Java application already
Basically, it sounds like you might not have added the Java 3D api's to your JRE. The download you linked to in your original question contains a help file named README-unzip.html, which is where I obtained the following instructions from:
Download java3d-1_5_1-XXX.zip to a temporary directory, for example, "/tmp"
Unzip java3d-1_5_1-XXX.zip into "/tmp" as follows:
cd /tmp unzip java3d-1_5_1-*.zip
This will create a "java3d-1_5_1-XXX" subdirectory in /tmp where the downloaded files can be found. The file you need for manual installation is "j3d-jre.zip".
Unzip Java 3D 1.5.1 into the "jre" directory of your JDK. For example, if your JDK is in "/usr/java/jdk1.6.0_01/jre", you would do the following:
cd /usr/java/jdk1.6.0_01/jre unzip /tmp/java3d-1_5_1-*/j3d-jre.zip
Verify that the j3dcore.jar, j3dutils.jar, and vecmath.jar files end up in "/usr/java/jdk1.6.0_01/jre/lib/ext"
这篇关于在Eclipse上安装Java3D的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!