Jump to content

executing a java program from php


premtemp

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.