Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Calling a Jar file from PHP and System.out.println