title: How do I run Eclipse using Oracle's new 1.7 JDK for the Mac?
body: <p>I'm trying to get the <a href="https://blogs.oracle.com/java/entry/five_update_java_releases" rel="noreferrer">new 1.7 JDK</a> working with Eclipse (this is Oracle's official release).</p>
  
  <p>I don't mean just pointing Eclipse to it so you can use it in projects, this works fine, but actually making Eclipse run using the 1.7 JVM.</p>
  
  <p>I've moved the new JVM to the top of the list in Java Preferences, but Eclipse still starts with 1.6. If I disable 1.6 in Java Preferences I get a dialog immediately after I double-click on Eclipse saying "Failed to create the Java Virtual Machine".</p>
  
  <p><em>edit:</em> I added the following to my eclipse.ini just before the -vmargs:</p>
  
  <pre><code>-vm
  /Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home/bin/java
  </code></pre>
  
  <p>Yet in the Eclipse installation details dialog I still see:</p>
  
  <pre><code>java.runtime.version=1.6.0_31-b04-415-11M3646
  </code></pre>
  
  <p><em>edit 2</em>: here are the contents of my eclipse.ini file: <a href="https://gist.github.com/2512578" rel="noreferrer">https://gist.github.com/2512578</a></p>