java from command line over and over
<p>i have a PHP application that invokes a command line to execute some specific operations.</p>

<p>The command line calls a 'java -jar somefile.jar arg1 arg2'</p>

<p>The problem is that this is slow, since it has to startup the jar every time it get's invoked.</p>

<p>Is there any way keep the java machine code in cache or is there any way to optimize the whole process? </p>

<p>Thanks,
joel</p>

<p>Update:
The JAR was developed by our team.</p>

<p>To use as a service, i'll have to install some java server (tomcat or alike), right?</p>

<p>And how about a java php bridge? Can that be any faster?</p>
