This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes external programs in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "external programs in java" Watch "external programs in java" New topic
Author

external programs in java

conor murphy
Greenhorn

Joined: May 06, 2006
Posts: 15
hi

i have created a program that uses the runtime.exec()method to run an external program. my problem is that when i run the program, it does nothing until i press cntrl-c to break it and then it prints out the output from the external program. is there a way to run the external program while my program is running without having to wait until my program ends? do i need to use threads?

thanks
James Sabre
Ranch Hand

Joined: Sep 07, 2004
Posts: 781

Yes you need thread(s). Check out http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html


Retired horse trader.
 Note: double-underline links may be advertisements automatically added by this site and are probably not endorsed by me.
 
jQuery in Action, 2nd edition
 
subject: external programs in java
 
Similar Threads
running external program from Java
running an external process smoothly
Problem with j2ee running with space directory
creating extracting jar file with external jar
run an no java prog. from java