This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes I/O and Streams and the fly likes Connecting to Unix via Windows Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Connecting to Unix via Windows" Watch "Connecting to Unix via Windows" New topic

Connecting to Unix via Windows

Theodore Reph

Joined: Dec 19, 2005
Posts: 1
From a windows box, how can I read a file that is on a Unix box and write a file to the Unix box (using Java)?
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
Is the Unix file system mounted to the Windows box as a separate drive? If so, you should be able to do access files the same way you do local files on the C:. If not, does the Unix box provide an FTP server? Or are the files available via HTTP? Java provides some tools that allow you to handle files over these two protocols. There may also be some third-party tools that will make it easier, but I don't know of any off the top of my head.


Java API Documentation
The Java Tutorial
I agree. Here's the link:
subject: Connecting to Unix via Windows
Similar Threads
java programs in vi editor
using Runtime.exec() and the process exitValue = 1
Runing exe file from Unix in unix
How to copy a file from linux to windows and vise versa using java swing