title: How to upgrade JDK 1.6 to a higher version to run Glassfish?
body: <p>I have NetBeans IDE 7.3.1 installed on my mac and trying to start Glassfish server but it shows the following error, </p>
  
  <pre><code>GlassFish server could not be started with JDK 1.6 (Default). Please sleect another Java SE 
  Platform.
  </code></pre>
  
  <p>I have downloaded and installed jdk-7u25-macosx-x64.dmg and running java -version shows the following</p>
  
  <pre><code>java version "1.7.0_25"
  Java(TM) SE Runtime Environment (build 1.7.0_25-b15)
  Java HotSpot(TM) 64-Bit Server VM (build 23.25-b01, mixed mode)
  </code></pre>
  
  <p>When I try to choose a new platform for my netbeans and get to JavaVirtualMachines folder there is only 1.6.0.jdk in this folder!</p>
  
  <p>How can I point it to use 1.7 version?</p>