title: Force javaws to use Java 6 on Mac OS X 10.7
body: <p>I'm running on OS X 10.7.5 and I've got both Java 6 and Java 7 installed.
  I've got a bash shell setup to run Java 6 but when I launch a JNLP file
  I see the Java 7 splash screen and in the Java console I see</p>
  
  <pre><code>Java Web Start 10.25.2.15
  Using JRE version 1.7.0_25-b15 Java HotSpot(TM) 64-Bit Server VM
  </code></pre>
  
  <p>This happens even if I use the full path to javaws</p>
  
  <pre><code>/System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/javaws foo.jnlp
  </code></pre>
  
  <p>Just to verify this shows the shell is using Java 6:</p>
  
  <pre><code>$ echo $JAVA_HOME
  /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home
  $ type -all javaws
  javaws is /usr/bin/javaws
  $ ls -l /usr/bin/javaws
  lrwxr-xr-x 1 root wheel 76 Nov 20 10:13 /usr/bin/javaws -&gt; /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/javaws*
  $ type -all java
  java is /usr/bin/java
  $ ls -l /usr/bin/java
  lrwxr-xr-x 1 root wheel 74 Nov 20 10:13 /usr/bin/java -&gt; /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java*
  $ java -fullversion
  java full version "1.6.0_65-b14-462"
  </code></pre>