title: Execute *.java or *.jar on PHP at website
body: <p>I have already can execute *.java or *.jar on PHP at my xampp, with this code</p>
  
  <pre><code>exec('java -cp stanford-parser.jar edu.stanford.nlp.parser.lexparser.LexicalizedParser stanford-parser-2012-03-09-models\edu\stanford\nlp\models\lexparser\englishPCFG.ser.gz text.txt &gt; result.txt');
  </code></pre>
  
  <p>it's localhost in my computer.</p>
  
  <p>And now I want to hosting my coding into website internet. I'm afraid the java don't want to execute and run the exec line. What should I do to make exec *.java or *.jar can run on website?</p>
  
  <p>I hear that I must install tomcat or javabridge. But I don't understand. can you help me? thanks very much.</p>