Remote software installation through Java ??

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • swatibksh
    New Member
    • Dec 2007
    • 6

    Remote software installation through Java ??

    how can i install any software on remote machine through java ? i want to execute its .exe file on remote machine using java code
  • atlantisstorm
    New Member
    • Feb 2008
    • 3

    #2
    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.

    Comment

    • BigDaddyLH
      Recognized Expert Top Contributor
      • Dec 2007
      • 1216

      #3
      Why choose Java to do this? I would look for an already-written product that does remote installs.

      Comment

      • chaarmann
        Recognized Expert Contributor
        • Nov 2007
        • 785

        #4
        Originally posted by swatibksh
        how can i install any software on remote machine through java ? i want to execute its .exe file on remote machine using java code
        You could use RMI to access the remote machine,
        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

        Working...