title: Java Preferences.app doesn't change default java version
body: <p>The version returned by java -version on the command line will be determined by the link /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK if JAVA_HOME is exported as /Library/Java/Home (which is a link to /System/Library/Frameworks/JavaVM.framework/Home)  </p>
  
  <p>The version returned by java -version on the command line will be determined by Java Preferences.app if JAVA_HOME is not set.</p>
  
  <p>I've figured this out through trial and error.  I am interested in where this is documented.</p>
  
  <p>I'm not sure if CurretntJDK is safe for the user to change.  Java Preferences.app doesn't change it.</p>