I have a jar file which have classes and a package in it. One of these classes is calling another class which is present in the package. The code i am using it is as follows: Runtime r=Runtime.getRuntime();
It is working fine when i am executing it without making jar file. But when i make a jar file of all these things , this exec() is not working. I have tried a lot. If any body has any idea suggest me. Thanks
Originally posted by Ulf Dittmer: . . . By the way, are you properly handling input/output/error streams for the subprocess?
If you search through the Ranch you find old threads like this one with links to Daconta's article, and also look at the ProcessBuilder class which makes it a bit easier by merging the output and error streams.
Joined: Oct 03, 2007
thanks for your valuable suggestions
subject: Runtime.exe() is not working from a jar file