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

javascript - ScrollTo Effect (href to div) -

javascript - ng-class not responding to change in model in Angular? -

javascript - document.registerElement extending HTMLInputElement prototype while using custom tag name to avoid implicit browser style -