简体   繁体   English

如何使JDK 7默认为在Mac OSX 10.9+上使用?

[英]How do I make JDK 7 default jave to be used on Mac OSX 10.9+?

By default, if you install the Oracle JDK, it will not be used as the default java environment. 默认情况下,如果安装Oracle JDK,它将不用作默认的Java环境。

All the system symlinks from /usr/bin/java* do forward to /System/Library/Frameworks/JavaVM.framework/Versions/Current instead of CurrentJDK. / usr / bin / java *中的所有系统符号链接都转发到/System/Library/Frameworks/JavaVM.framework/Versions/Current,而不是CurrentJDK。

How can I change these, is there any script that can change default java? 如何更改这些,是否有任何脚本可以更改默认Java?

Check the instructions of Oracle . 查看Oracle说明 You can use Applications -> Utilities -> Java to switch the default JDK. 您可以使用Applications -> Utilities -> Java来切换默认的JDK。

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

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