title: How to execute jar file in php
body: <p>i read a lot about that, but my problem still remain:</p>
  
  <p>what i'm trying to do is:</p>
  
  <pre><code>echo shell_exec("/usr/bin/nohup /usr/bin/java -Xmx1g -jar /var/www/html/myDir/ff.jar &amp;");
  </code></pre>
  
  <p>it gives me that error:</p>
  
  <pre><code>Error occurred during initialization of VM Could not reserve enough space for code cache
  </code></pre>
  
  <p>i use <code>nohup</code> because jar must run even if php terminate.</p>
  
  <p>What could be the problem? </p>