premtemp Posted August 11, 2008 Share Posted August 11, 2008 Hello, How do I execute a Java program from php I tried the following $param =escapeshellcmd("\\server1\ftp\rtt\file1.gz"); $str = escapeshellcmd("java -Xms256m -Xmx512m -jar \\server1\Tools\DAT\DAT.JAR $param"); $out= exec($str); However nothing is launch. This command work if I run it from the windows cmd line. Thnaks in advance for any help Link to comment https://forums.phpfreaks.com/topic/119221-executing-a-java-program-from-php/ Share on other sites More sharing options...
lemmin Posted August 11, 2008 Share Posted August 11, 2008 I looked into this a few days ago and found that you need to install the java integration: http://us.php.net/manual/en/java.installation.php It says there is a php_java.dll file in the release, but I don't see it in the ext folder so I lost interest. Link to comment https://forums.phpfreaks.com/topic/119221-executing-a-java-program-from-php/#findComment-614072 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.