newprogrammer
newprogrammer

Reputation: 11

how to upload a Folder from Windows to Linux machine using Java

how to upload a Folder from Windows to Linux machine using Java. Windows machine is the client machine. I am establishing the connection to Linux machine on windows machine using putty, java code will be running on linux machine. This is a servlet based project.

Upvotes: 1

Views: 1391

Answers (2)

AlexR
AlexR

Reputation: 115328

You can use FTP, SSH or Telnet. FTP and SSH are preferable. If you choose SSH I suggest you to use JSch. For FTP you can use VFS from Jakarta.

Upvotes: 0

MadProgrammer
MadProgrammer

Reputation: 347184

I'd suggest trying FTP, since your working from Linux to Windows.

Windows is a little cranky about these things so it might take some setting up it get it to work.

Check out How to retrieve a file from a server via SFTP? for some suggestions.

If you can, I'd reverse the process, copy the folder from Windows to Linux, Linux just seems to be easier to get setup to handle this kind of thing...IMHO

Upvotes: 1

Related Questions