Reputation: 170508
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
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
Reputation: 17433
Check the instructions of Oracle. You can use Applications -> Utilities -> Java
to switch the default JDK.
Upvotes: 1