title: Switching from java 1.6 to 1.8 on a mac
body: <p>I got a new mac and need to install java version 8. I downloaded it from oracle and when I run their app on their website, it says that I have the most recent version of java. When I run "java -version" is says that I am still using 1.6. How do I change this? </p>
  
  <p>According to java control panel I have 1.8. However when working in eclipse it is still using 1.6.0_65. I tried uninstalling and it was unsuccessful. </p>
  
  <p>My java virtual machine folder only contains 1.6.0.jdk. Do I need to move 1.8 to this folder?</p>