Redirection of input and error stream

HI

I am not sure this is the right forum to ask a solution for my problem. But could not get a better place.

My requirement is to run an executable jar file from my code.

I used the java.lang.RunTime and java.lang.Process to invoke the jar using the java -jar command . But the problem is that these jars use log4j for error and debug logging into multiple files. When i use the lang APIs these log messages are given back to me through the InputStream of the process rather than being written into the respective log file.

Please suggest a way I can avoid this redirection into the default InputStream

Thanks in Advance

Chanchal

[672 byte] By [Chanchallengea] at [2007-11-27 3:58:34]
# 1
HiThe problem has been solved.I gave the absolute path for the log files in the property files. This has solved the problem but I have no idea why or how.Please advice me if you can get an answer for the same
Chanchallengea at 2007-7-12 9:03:01 > top of Java-index,Core,Core APIs...