I have a php file, javaCompile.php that looks like this:
<?php
echo "Hello World!<br/>";
exec("javac C:/xampp/htdocs/src/Test.java");
echo "Finished!";
?>
If I run it from a windows command line, the java file is compiled and the Test.class file is created.
When I try to run it through localhost, I do get the 2 echo statements, but the class file does not get created.
Any help with this would be appreciated. Javac is located in the standard install location, and the location is set in the path, but I am thinking the php server does not utilize the windows path.