jQuery in Action, 2nd edition
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
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Calling a Jar file from PHP and System.out.println
 
Similar Threads
multiple jar creation for multiple directories
Execute ant build file from a java source
Could not able to run first script
Classpath or How to declare files
Getting Resin to ignore PHP script so that webserver deals with request