I hope not to duplicate a post but I could not find any details about it.
I developed a java sendMail application (with NetBeans) and correctly compiled the project. I copied everything on my UNIX cloud server in the same path where the php resides where I need to call the .jar. the following is the structure of the path:
/file.php
/SendMail.jar
/lib/javax.mail.jar
When i call file.php (via browser), nothing happens...... I have tried all syntax possible in php......shell_exec....exec....ecc...ecc... below the code I am using:
$java = "/opt/abs/httpd/SendMail.jar";
shell_exec("java -cp ".$java);
echo "Done";
do I have to implement some configuration for the apache server to communicate with java?
where am I wrong?
Thanks in advance!!!