title: Change the default JVM version in matlab
body: <p>i am trying to change the default JVM from matlab but it didn't work.</p>
  
  <pre><code>&gt;&gt; !java -version
  java version "1.8.0_25"
  Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
  Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)
  &gt;&gt; !/usr/libexec/java_home -V
  Matching Java Virtual Machines (3):
  1.8.0_25, x86_64:   "Java SE 8"   /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home
  1.6.0_65-b14-468, x86_64:   "Java SE 6" /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
  1.6.0_65-b14-468, i386: "Java SE 6" /Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
  
  /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home
  &gt;&gt; !export JAVA_HOME=`/usr/libexec/java_home -v 1.6.0_65-b14-468`
  &gt;&gt; !java -version
  java version "1.8.0_25"
  Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
  Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)
  </code></pre>
  
  <p>i am doing this because the MCC command doesn't work with java 1.8.</p>
  
  <p>what i have to do to change the default JVM? 
  iam working on OS X 10.10.3 with Matlab r2011a</p>
  
  <p>thanks</p>