title: Run JAR file on server
body: <p>I wrote a Java program, which creates a text file in the same directory as the .jar file. Now I want to use php to run the .jar.
  I tried:</p>
  
  <pre><code>exec('java -jar awesomejavaprogram.jar');
  </code></pre>
  
  <p>But I doesn't create the file... I don't get any error message or stacktrace either.</p>