java - Run jar through php -


im trying run jar file php using shell_exec(java -jar c:/myfile.jar). not working , im getting following error in apache error log. "java not recognized internal or external command". working windows command prompt well. please help.

it sounds java.exe executable isn't on path.

just include fully-qualified path it, quoting necessary if directory contains spaces.


Comments

Popular posts from this blog

c# - must be a non-abstract type with a public parameterless constructor in redis -

c# - ReportViewer control - axd url -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -