Oracle JDK 7 for Mac installation inconsistencies, how to get rid of old Apple JDK cleanly?
After Apple got rid of the Java Preferences tool, is there a clean way to fix the clutter left behind with symbolic links to Java tools that still point to the old Apple JDK?
I have set my JAVA_HOME = $ (/ usr / libexec / java_home)
And when I do "what java" it looks ok
gubatrons-macbook-pro-3:frostwire-desktop gubatron$ which java
/Library/Java/JavaVirtualMachines/jdk1.7.0_10.jdk/Contents/Home/bin/java
but when i try to execute java it still uses java in / usr / bin /
gubatrons-macbook-pro-3:frostwire-desktop gubatron$ java -version
java version "1.6.0_37"
Java(TM) SE Runtime Environment (build 1.6.0_37-b06-434-11M3909)
Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01-434, mixed mode)
Is there a clean way to get rid of the old Apple JDK?
source to share
The correct answer is to simply understand how soft links and pointers work, not just delete versions. It looks like a loop at first, but it's pretty simple. The explanation is here . This is the best explanation here: Mac OS X 10.6.7 Java Path Current JDK is confusing
source to share
Welcome to Steve Jobs' last laugh: java in /usr/bin
is actually a stub that points to real java; there is only one version of JVM used .
Check out the linked answer here: Need help understanding Oracle Java on Mac
source to share