I am trying to execute a java class file from php using the exec method. However, i get the following error.
I have set chmod 777 to the java class file so i suppose permission is not an issue.
For some reason it is not able to find it ?
I can run the java class file from the terminal using the java command without any problem
Error:
Error: Could not find or load main class .var.www.redbutton.readBashScript.class
<?php
exec('java /var/www/redbutton/readBashScript.class');
?>
and
<?php
exec('java /var/www/redbutton/readBashScript');
?>