File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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
It's not a secret anymore!