954,587 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Can't execute a Java App from PHP

Hi,

I'm trying to run a Java App from PHP.

system('java -jar /home/dave/web/drupal/java/dist/emp.jar'); fails. nothing prints out, it just returns FALSE.

However, this works:
system('java -jar');

Prints out the help info normally associated with incorrect parameters passed to Java.

This also works:
system("ls -l /home/dave/web/drupal/java/dist/emp.jar");

Prints out a listing of /home/dave/web/drupal/java/dist/emp.jar including permissions.

This has got me foxed. Can anyone suggest anything to try?

The Jar was built using NetBeans and it runs fine from the commend line.

davecoventry
Newbie Poster
16 posts since Jun 2009
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: