[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: execute an executable file from java
Lan
Here is a little class and test class I wrote to run exe programs from
within java. The class runs the exe and catches the output of the program
along with any error message that might be generated. This class was put
together real quick as a proof of concept so it will need to be cleaned up a
little. The test class was written to perform a ping on a passed host on a
windose box. I guess depending on your requirements you can write a Java
class that will perform the endless loop you talk about. I hope this helps.
Tim McCauley
-----Original Message-----
From: Lan Vo [mailto:vothanhlan@hotmail.com]
Sent: Monday, July 02, 2001 10:49 PM
To: ajug-members@www.ajug.org
Subject: execute an executable file from java
Hello all,
Would someone please teach me how to call an exe file from java? Is it
possible to make a java program works with an exe in an endless loop, like
inter-process communication?
Thank you so much,
Lan Vo.
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
CommandTest.java
CommandUtil.java