title: Increasing JVM max heap size in MAC OSX 10.12
body: <p>I am running MATLAB in my MAC OSX 10.12 (16 GB of memory). I want to increase the JVM 1.8 max heap for using MATLAB without issues. The current size I have is:</p>
  
  <pre><code> uintx MaxHeapSize    := 4294967296    {product}
  </code></pre>
  
  <p>To increase, I used the following command to set 8GB max memory:</p>
  
  <pre><code>$java -Xms1g -Xmx8g MATLAB_R2016b.app 
  </code></pre>
  
  <p>but I get this error</p>
  
  <pre><code>Error: Could not find or load main class MATLAB_R2016b.app
  </code></pre>
  
  <p>I don't know how to solve that. I googled it but still not finding the solution. Thank you</p>