简体   繁体   English

解压缩Mac OSX的Java 3D文件

[英]Unzipping Java 3D file for Mac OSX

I have downloaded a Java 3d-1_5_1-macosx.zip. 我已经下载了Java 3d-1_5_1-macosx.zip。 I am trying unzip the file. 我正在尝试解压缩文件。 The file j3d-jre.zip is the file that needs to be unzipped according to the README.txt. 文件j3d-jre.zip是根据README.txt需要解压缩的文件。 I have moved the folder to my desktop so from the terminal I have typed cd Desktop/java3d-1_5_1-macosx-2/. 我已将文件夹移至桌面,因此从终端输入cd Desktop / java3d-1_5_1-macosx-2 /。 Then from the terminal I type unzip j3d-jre.zip and this is what I see. 然后从终端输入unzip j3d-jre.zip,这就是我所看到的。 Archive: j3d-jre.zip replace lib/ext/j3dcore.jar? 存档:j3d-jre.zip替换lib / ext / j3dcore.jar? [y]es, [n]o, [A]ll, [N]one, [r]ename: I also tried using right click and stuff it. [y] es,[n] o,[A] ll,[N] one,[r] ename:我也尝试使用右键单击将其塞满。 The instructions from the README file are below. 自述文件中的说明如下。

Download java3d-1_5_1- XXX.zip to a temporary directory, for example, "/tmp" 将java3d-1_5_1- XXX.zip下载到一个临时目录,例如“ / tmp”

Unzip java3d-1_5_1-XXX.zip into "/tmp" as follows: 将java3d-1_5_1-XXX.zip解压缩为“ / tmp”,如下所示:

cd /tmp unzip java3d-1_5_1-*.zip cd / tmp解压缩java3d-1_5_1-*。zip

This will create a "java3d-1_5_1-XXX" subdirectory in /tmp where the downloaded files can be found. 这将在/ tmp中创建一个“ java3d-1_5_1-XXX”子目录,可以在其中找到下载的文件。 The file you need for manual installation is "j3d-jre.zip". 手动安装所需的文件是“ j3d-jre.zip”。

Unzip Java 3D 1.5.1 into the "jre" directory of your JDK. 将Java 3D 1.5.1解压缩到JDK的“ jre”目录中。 For example, if your JDK is in "/usr/java/jdk1.6.0_01/jre", you would do the following: 例如,如果您的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 cd /usr/java/jdk1.6.0_01/jre解压缩/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" 验证j3dcore.jar,j3dutils.jar和vecmath.jar文件是否以“ /usr/java/jdk1.6.0_01/jre/lib/ext”结尾

Can you not simply open it with Archive Utility (right click on the file on a Mac) or download a free program such as Stuff It Expander? 您不能简单地使用Archive Utility打开它(在Mac上右键单击文件)还是下载免费的程序,例如Stuff It Expander? http://www.stuffit.com/mac-expander.html#compare ? http://www.stuffit.com/mac-expander.html#compare吗?

From what I understand it looks like you have done this step a few times 据我了解,您似乎已经完成了此步骤几次

Archive: j3d-jre.zip replace lib/ext/j3dcore.jar? 存档:j3d-jre.zip替换lib / ext / j3dcore.jar? [y]es, [n]o, [A]ll, [N]one, [r]ename: [y] es,[n] o,[A] ll,[N] one,[r] ename:

If its giving you these options then the file must be un-zipped already and is there in the folder, maybe check to see if you can find it. 如果它为您提供了这些选项,则该文件必须已经解压缩并且位于文件夹中,也许请检查是否可以找到它。

README.txt says that j3d-jre.zip is the zip file that contains the the files that need to be installed. README.txt表示j3d-jre.zip是一个zip文件,其中包含需要安装的文件。 Does that necesarily mean that is the file that is supposed to be unzipped? 这是否必然意味着应该解压缩的文件?

I would say yes 我会说是的

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM