I am new about java. after using the Java Preference of Mac to update the JAVA to 7, I got mixed these default JAVA path in Mac.
When I type "java -version", it shows: java 1.7.0_17. And when I type "mvn -version", it shows the JAVA HOME: "/Library/Java/JavaVirtualMachines/jdk1.7.0_17.jdk/Contents/Home/jre"
But I type "/System/Library/Frameworks/JavaVM.framework/Versions/", it shows several directory including " Current, CurrentJDK" ,and type CurrentJDK/Home/bin/java -version. it shows java1.6
When I see ~/.bash_profile, it shows export JAVA_HOME="/usr/libexec/java_home"
Can anyone tell me the difference of these path. I am mixed.