PHP Run Java class file from PHP script on a website July 23, 2011 Pramod T P Leave a comment You can run the java filefrom PHP as follows <?php exec(“java -jar filename.jar arguments”,$output); ?> Share this: Click to share on X (Opens in new window) X Click to share on Facebook (Opens in new window) Facebook Like Loading...