I can not understand why he writes

Can not find "java". Check if the name is correct and try again.

In the "system environment variables", I tried to add the path to java but to no avail

$cmd = 'java -jar C:/start.jar'; if (substr(php_uname(), 0, 7) == "Windows"){ pclose(popen("start /B ".$cmd, "r")); } else { exec($cmd." > /dev/null &", $PID); } 
  • and if the command line to run? finds? - Mikhail Vaysman
  • Yes, it finds ... - Maks
  • run under the same user? - Mikhail Vaysman
  • Yes, user 1 is Administrator. Turned off the uac thought the problem was right, but no - Maks

1 answer 1

Since I started it on the Local server using the Open Server, I didn’t take into account that the terminal in it starts not standard but conemu, so the solution to this problem is: Settings -> Server -> Setting the use of the Path variable -> set to "Your Path + userdata / config / path.txt ". Added a path to java and everything works