echo shell_exec("javac A.java set path=C:\Program Files\Java\jdk1.6.0_11\bin 2>&1");
echo shell_exec("java A set path=C:\Program Files\Java\jdk1.6.0_11\bin 2>&1");
Date :
2013-09-08 12:24:42
By :
JPC
No. 11
Guest
ลองทำแบบนี้ได้แล้วครับ
Code (PHP)
echo shell_exec("C:/Progra~1/Java/jdk1.6.0_11/bin/javac A.java 2>&1");
echo shell_exec("C:/Progra~1/Java/jdk1.6.0_11/bin/java A 2>&1");