I am attempting to compile and run a simple java file on my server, but I'm not getting any results. Here is what I'm trying to do:
Java is installed in a folder named java.
Anon.java is in the root directory along with this php file.
When I run the code, nothing happens. No error messages, no compiled files, nothing.
I am using Linux (GNU bash, version 2.05b.0(1)-release (i386-redhat-linux-gnu)) on the server.
Can anyone shed light on how to make this work?
Code:
<?php
echo shell_exec("java/bin/javac Anon.java");
?>
Anon.java is in the root directory along with this php file.
When I run the code, nothing happens. No error messages, no compiled files, nothing.
I am using Linux (GNU bash, version 2.05b.0(1)-release (i386-redhat-linux-gnu)) on the server.
Can anyone shed light on how to make this work?
Comment