title: Install Java EE 6 on OS X Lion
body: <p>The Java Preferences application on my OS X Lion workstation indicates that I have Java SE 6 v1.6.0_29-b11-402 installed (both 32- and 64-bit versions).  Unfortunately, I need additional features at are only available in the Enterprise Edition.</p>
  
  <p>A comment by 'Jesper' in '<a href="https://stackoverflow.com/questions/1577014/how-install-a-specific-jdk-on-mac-os-x">How install a specific jdk on Mac OS X?</a>' suggests that I need to use the Java supplied by Apple, rather than the one from Oracle/Sun.  Unfortunately, it doesn't seem that Apple offers an Enterprise Edition of Java 6.</p>
  
  <p>This leads me to ask a number of questions:</p>
  
  <ol>
  <li>Did I miss something?  Does Apple offer an EE of Java 6?</li>
  <li>If 1 is true, how do I get it?  Can it be installed 'side by side' with the Java SE 6?</li>
  <li>If 1 is false, can a Oracle/Sun version be used?  Is there a recommended installation location?  I'm guess that the /System/Library/Frameworks/JavaVM.framework/Versions/ folder is not recommended.</li>
  <li>The Oracle/Sun version seems to include a lot of extras (e.g. Glassfish) that I would prefer not to install.  Can I install the core SDK w/o the extras?  Will Tomcat 7 work as an alternative to Glassfish?</li>
  </ol>
  
  <p>** edit **</p>
  
  <p>This question is a result of another question that I posted: <a href="https://stackoverflow.com/questions/8626669/restful-web-service-java-lang-nullpointerexception-service-abstractfacade-finda">RESTful web service: java.lang.NullPointerException service.AbstractFacade.findAll</a>.  It seems that this particular error is a result of a missing annotation (@Stateless).  This annotation is 'contained' in the javax.ejb.* namespace, which is contained in a .JAR file that is not on my workstation.</p>
  
  <p>This led me to conclude that I needed the 'Enterprise Edition' of Java 6 (which would have the missing .JAR file and other dependent files).  I suppose if there was a way to determine which .JAR file is missing (Netbeans 7 doesn't seem to help with this) I probably could just add it to the project and skip the EE hassles.</p>