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.
Asked
Active
Viewed 1,346 times
1
-
Wait, uploading means pushing content from a client to a server. Yet you have stated that the Java app is on the server. You've also thrown a Putty connection into the equation, rather than using any number of known file transfer protocols. This question is quite difficult to understand. – allingeek Sep 27 '12 at 07:06
2 Answers
1
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

Community
- 1
- 1

MadProgrammer
- 343,457
- 22
- 230
- 366