title: Yosemite recognize only 1.6.0.jdk even though I installed Java 8. I can't modify java_home
body: <p>I've uninstalled Eclipse on Mac OS X (Yosemite) and now I can't install neither Eclipse nor Jboss developer studio because Mac OS X Yosemite recognizes only 
  /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home 
  even if I've installed the latest Java VM.</p>
  
  <p>I've verified </p>
  
  <p><a href="https://i.stack.imgur.com/byOjo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/byOjo.png" alt=""></a><br>
  <sub>(source: <a href="http://thekokeformula.com/verified.png" rel="nofollow noreferrer">thekokeformula.com</a>)</sub>  </p>
  
  <p>if i do on terminal this</p>
  
  <pre>/usr/libexec/java_home -V it</pre>
  
  <p>answers </p>
  
  <pre>Matching Java Virtual Machines (2):
      1.6.0_65-b14-466.1, x86_64: "Java SE 6" /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
      1.6.0_65-b14-466.1, i386:   "Java SE 6" /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
  /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home</pre>
  
  <p>It can't see I've updated Java.</p>
  
  <p>If I try this:</p>
  
  <pre>export JAVA_HOME='/usr/libexec/java_home -v 1.8'</pre>
  
  <p>nothing happens.</p>
  
  <p>Could you help me?</p>