Remote process execution and file transfer in Java