如何在 Mac 上安装 Java 3D [英] How to install Java 3D on Mac

查看:39
本文介绍了如何在 Mac 上安装 Java 3D的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在我的大学学习计算机图形学课程.我无法使用 Java 创建 3D 图形,因为我没有正确安装它.我从 Oracle 下载了 Java 3D API.不包含安装程序.只是原始文件 j3dcore.jar、j3dutils.jar 和 vecmath.jar 以及一些自述文件.其中一个自述文件确实包含一个包含安装说明的链接.它说我必须将 Java 3D 1.5.1 解压缩到 JDK 的jre"目录中.我的JDK在哪里?我找到了我的 Java 文件夹 System > Library > Java > Extension 并将文件移到那里,因为我在网上阅读了一些其他内容.编码时,我仍然在 Eclipse 中收到此错误消息:访问限制:由于对所需库/System/Library/Java/Extensions/j3dutils.jar 的限制,无法访问类型 [whatever] 中的方法 [whatever]."但是我把这个文件放在了它应该在的地方.

I am taking a computer graphics course at my university. I am unable to create 3D graphics using Java since I do not have it properly installed. I downloaded the Java 3D API from Oracle. There is no installer included. Just the raw files j3dcore.jar, j3dutils.jar, and vecmath.jar as well as a few read me files. One of the read me files does contain a link that has instructions for the install. It says I must "Unzip Java 3D 1.5.1 into the "jre" directory of your JDK." Where is my JDK? I found my Java folder System > Library> Java > Extension and moved the files there because I read some other things online. I still get this error message in Eclipse when coding: "Access restriction: the method [whatever] from the type [whatever] is not accessible due to restriction on required library /System/Library/Java/Extensions/j3dutils.jar." But I have this file exactly where it says it should be.

推荐答案

Java 3d 1.3 版已预安装在 Mac OS X 中.您不需要安装任何东西.也许试着把事情恢复原状?

Java 3d version 1.3 is pre-installed in Mac OS X. You shouldn't need to install anything. Perhaps try put things back the way they were?

如果您想升级到 Java 3D 1.5 版本,您可以下载此安装程序:http://create.ife.no/vr/tools/j3d/java3d_1_5_2-macosx.pkg.zip

If you want to upgrade to version Java 3D 1.5, you can download this installer: http://create.ife.no/vr/tools/j3d/java3d_1_5_2-macosx.pkg.zip

这篇关于如何在 Mac 上安装 Java 3D的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆