aspose file tools*
The moose likes Java in General and the fly likes Calling a Jar file from PHP and System.out.println Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Calling a Jar file from PHP and System.out.println" Watch "Calling a Jar file from PHP and System.out.println" New topic
Author

Calling a Jar file from PHP and System.out.println

Raj S Kumar
Ranch Hand

Joined: Aug 06, 2006
Posts: 48
Hi,
I have a .jar file of my application. I am calling this jar file from a PHP script. The problem here is I am able to capture the output (System.out.println()) from the main function.
But, I am not able to get the output from other classes.

I am using the following PHP script.


Does this mean, even if its in a same Jar file and part of the same call stack, the output goes to different streams???
If so, how to make this work?

Your suggestions please....


Raj S Kumar
Raj S Kumar
Ranch Hand

Joined: Aug 06, 2006
Posts: 48
Apologies. I had my analysis done wrong.
It is working fine, So changing the state to resolved.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Calling a Jar file from PHP and System.out.println