To handle ssh password I probably need re-write deploy-java-files.sh to wrap ssh/scp with expect.
How about give hpcc user permission to run "mkdir" and "cp" through sudo? It should allow hpcc user to drop the java file in /opt/HPCCSystem/classes and keep owner as root.