sorin
sorin

Reputation: 170508

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?

Upvotes: 0

Views: 101

Answers (2)

Jay
Jay

Reputation: 9479

Set your JAVA_HOME to your JDK 7.

Check this http://www.mkyong.com/java/how-to-set-java_home-environment-variable-on-mac-os-x/

Upvotes: 0

Sebastian
Sebastian

Reputation: 17433

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

Upvotes: 1

Related Questions