I don't know if I in the right place, but I didn't find other forum.
I tried to use the method: Runtime.getRuntime().exec("scp -i the path of my publickey on the remote server usernameOnTheRemoteServer@remoteIP:path of the file that I want to copy myComputerPath)
and I got exception: Cannot run program "scp": CreateProcess error=2, The system cannot find the file specified
can someone help me??
How about the general java programming forum?
Most likely you need to make the command prompt / bash invoke that command in stead of invoking it directly. This article will teach you everything you need to know about runtime.exec(); read it well: