java - Executing a command in terminal using php -


i trying run external command via php. want compile java file. i've tried this , this. unfortunately, in case java file doesn't compiling.

what wrong in code ?

exec("javac main.java"); 

but when compiled manually, , execute follwing command, works fine.

exec("java main"); 


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -