[英]Where's the JVM path for Java 6 / 1.6 OS X 10.10 Yosemite?
I can find the latest update for Java 1.8 at 我可以在以下位置找到Java 1.8的最新更新:
ls /Library/Java/JavaVirtualMachines/
which only lists 仅列出
jdk1.8.0_05.jdk
and not the Java 1.6 that I installed following updating to Yosemite? 而不是更新为优胜美地后安装的Java 1.6 ?
I need Java 6 for a legacy product that I'm maintaining, and the eclipse IDE 我需要Java 6作为我要维护的旧产品,并且需要Eclipse IDE
Since's it's the last version of Java that built and maintained by Apple it's on a different path, under /System
and not /Library
: 因为这是由Apple构建和维护的Java的最新版本,所以它位于/System
而不是/Library
下的不同路径中:
>ls -l /System/Library/Frameworks/JavaVM.framework/Versions/
Gives: 得到:
1.4 1.4.2 1.5 1.5.0 1.6 1.6.0
A Current CurrentJDK
Running this command /usr/libexec/java_home -V
shows the locations of the various installed Java versions, sample output: 运行此命令/usr/libexec/java_home -V
显示各种已安装的Java版本的位置,示例输出:
Matching Java Virtual Machines (3):
1.8.0_25, x86_64: "Java SE 8" /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home
1.6.0_65-b14-466.1, x86_64: "Java SE 6" /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
1.6.0_65-b14-466.1, i386: "Java SE 6" /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.