Java application to execute shell files from different servers
===

I would like to know if the following is possible:

I have to create a Java application that runs .sh files from different servers, I have my class to execute shells, with Runtime and Process, it runs .sh files from my computer, the thing now is that I would like to know if instead of my location be 

        process = runtime.exec("/home/user/Documents/example.sh");

could be:

        process = runtime.exec("180.150.2.***/server/user/Documents/serverExample.sh");

and the thing is, that to get the .sh files from server, I have to login, this application could be a desktop application or a web application, but has to be in Java, so, how could I do this?

I appreciate your help.

Chema.
