title: Add GlassFish 3.1.2 Runtime to Eclipse Juno
body: <p>I've recently installed Juno EE Edition and am trying to get my Glassfish 3.1.2.2 (open source edition) server runtime set up.</p>
  
  <p>I installed Glassfish separately via the zip file.  My directory looks like:</p>
  
  <pre><code>C:\Servers\glassfish3112\glassfish
  </code></pre>
  
  <p>In Eclipse, I installed the "Glassfish Java EE Application Server Plugin for Eclipse" which also installed "Oracle Glassfish Server Tools".  These are the jars/directories that were added to my plugins directory:</p>
  
  <ul>
  <li>oracle.eclipse.tools.glassfish_3.2.3.201106220649.jar</li>
  <li>oracle.eclipse.tools.doc.javaee6_1.0.0.201106220649</li>
  <li>oracle.eclipse.tools.doc.javaee5_1.0.0.201106220649</li>
  <li>org.eclipse.datatools.sqltools.db.generic_1.0.0.v201107221520.jar (which contains)
  
  <ul>
  <li>oracle.eclipse.tools.glassfish_4.2.1.201207240841.jar</li>
  <li>oracle.eclipse.runtime.glassfish3122_3.1.2.201207240841.jar</li>
  </ul></li>
  </ul>
  
  <p>I then went into my Preferences | Server | Runtim Environments to add my Glassfish server.  When I choose the above path, I get the error message <em>There is no valid GlassFish installlation in the specified directory.  Click the Install Server button to download and install to that directory.</em></p>
  
  <p>I found this StackOverflow question <a href="https://stackoverflow.com/questions/9001120/glassfish-3-1-2-and-eclipse">Glassfish 3.1.2 and Eclipse</a> which indicates that the Marketplace plugin does not work with GF 3.1.2 and gives this link to get the Juno version: <a href="http://dlc.sun.com.edgesuite.net/glassfish/eclipse/indigo/plugins/" rel="nofollow noreferrer">http://dlc.sun.com.edgesuite.net/glassfish/eclipse/indigo/plugins/</a></p>
  
  <p>The latest runtime and tools jars on that site are the ones included in the org.eclipse.datatools.sqltools.db.generic_1.0.0.v201107221520.jar.</p>
  
  <p>Can somebody explain to me what I've done wrong and how to get my runtime set up?</p>