Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I launch an exe from a Java program

Status
Not open for further replies.

Suubu

Programmer
Oct 8, 2003
2
IN
Hi,
I need to launch an exe from my java program. The exe is located on a remote machine in a network. Is there any way to do this?
Thanks in advance.
 
If you have Java installed on each remote machine, you can use RMI to invoke methods on remote machines. The RMI client would then use the Runtime.exec() method to invoke a program or exe.

It can be done, but only with Java running on all machines.

Again, applets could also perform this task, however, setting up the security on each machine would be a nightmare.
 
Hi sedi thanx for the response.
I used VJ++ do to the same, I got the solution. I just want to share it with you...
under the package - com.ms.win32 there is a class Kernel32. And use the method WinExec with arguments the path of the exe and an integer. it worked.
rgds.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top