0

I was trying to run an external command via php. Actually I want to compile a java file. I've tried this and this. But unfortunately, in my case the java file doesn't compiling.

what is wrong in this code ?

exec("javac Main.java");

but when I compiled it manually, and then execute the follwing command, it works fine.

exec("java Main");
Community
  • 1
  • 1

0 Answers0