how can i install any software on remote machine through java ? i want to execute its .exe file on remote machine using java code
Remote software installation through Java ??
Collapse
X
-
Unless you've got some form of client/server process running, I doubt you can. If you have the correct access you could set up soap service to handle the file transfer, but you'd still need to be able to handle any installation prompts, etc. -
Why choose Java to do this? I would look for an already-written product that does remote installs.Comment
-
You could use RMI to access the remote machine,Originally posted by swatibkshhow can i install any software on remote machine through java ? i want to execute its .exe file on remote machine using java code
and then there execute the file in a shell, like this:
(just adjust the "command" (your *.exe-file) and its working directory name "dir"):
Code:Runtime runtime = Runtime.getRuntime(); File fileDir = new File(dir); Process process = runtime.exec(command, null, fileDir); }
Comment
Comment