I have made a custom java program to output a license and am trying to run it in php.
$deviceid=\"12345\"; $command_app = \'java -jar /home/myname/secure/myc
My first instinct is that the command java is not in PHP's shell path. Try something like this:
$command_app = '`which java` -jar /home/myname/secure/mycommand.jar ';
The command which java will return the full path to the java executable...
which java