I am trying to run a .jar application from PHP using exec:
exec('java -jar parser.jar $inputstring 2>&1', $output);
I can make it work on cmd and java -version is returned, so I installed java. It seems like it's a path issue, but I'm on my way.
I tried to specify the full path by adding C: \ Program Files (x86) \ Java \ jdk1.8.0_91 \ bin; to system variables using shell_exec but that didn't help. I get the same error.
Any help would be greatly appreciated.
java php exec
Anda
source share