title: How to change default JRE for all Eclipse workspaces?
body: <p>I have one JRE in <code>C:\Program Files (x86)\Java\jre6</code> and that was the only one at the time I installed Eclipse.  I have subsequently installed a complete JDK in <code>C:\home\SFTWR\jdk1.6.0_21</code> and changed my <code>JAVA_HOME</code> environment variable to that.  However, every time I start a new Eclipse workspace, it only picks up the old JRE and I have to manually remove it and add the new one. </p>
  
  <p>How do I bind my Eclipse install to the new JDK so that every new workspace points to that only?  I checked <code>eclipse.ini</code> but there was no reference there to which JRE to go to.</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>I went into <code>Prefs-&gt;Java-&gt;Installed JRE</code>s, added the new location, marked it as default, removed the other, and it was effective only for the current workspace. However, when I opened a new workspace, only the old JRE was available.  So this didn't change the core Eclipse config that is applicable across all (at least new) workspaces</p>