After Apple got rid of "Java Preferences" tool is there a clean way to fix the mess left behind with symlinks to the java tools that still point to the old Apple's JDK?
I've set my JAVA_HOME=$(/usr/libexec/java_home)
And when I do "which java" it looks fine
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's still using the 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?