简体   繁体   中英

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.

All the system symlinks from /usr/bin/java* do forward to /System/Library/Frameworks/JavaVM.framework/Versions/Current instead of CurrentJDK.

How can I change these, is there any script that can change default java?

Check the instructions of Oracle . You can use Applications -> Utilities -> Java to switch the default JDK.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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