Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 314
  • Last Modified:

View Unix Files from Windows using JFileChooser

Hi,

What do I have to do in order to view server files(UNIX) from a windows machine using JFileChooser? Sample code would be very helpful.

Thanks
0
anthony0007
Asked:
anthony0007
  • 4
  • 3
  • 2
  • +1
1 Solution
 
Ajay-SinghCommented:
you can mount the unix filesystem on windows and access those files.
0
 
Ajay-SinghCommented:
samba can be used for this - http://www.samba.org/
0
 
anthony0007Author Commented:
I need to do it programatically, so I can incorporate the behavior into my application.
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
Ajay-SinghCommented:
I am not sure you can do it automatically. You can do it manually as: http://support.microsoft.com/kb/308582/
Remember in order to have this working, the unix server should be running samba like applications
0
 
ksivananthCommented:
may be possible through implementing your own filesystemview using some ftp utility, not sure but!
0
 
girionisCommented:
anthony0007,
> I need to do it programatically, so I can incorporate the behavior into
> my application.

As already stated the drive has to be mounted in order to see it. If it is then you access it like any other drive. This is how it is done in windows explorer as well, you first mount the drive ansd then you see it.
0
 
ksivananthCommented:
see the article is helpful,

http://www2.sys-con.com/ITSG/virtualcd/Java/archives/0507/hill/index.html

this explains, how you can display the files and folders from remote machines
0
 
anthony0007Author Commented:
We have decided to use a FTP object to connect to a FTP server on the UNIX box. We developed our FileSystem objects and use the Java File chooser to traverse the server directories.

However, the first answer given is the best way to go if you don't use an FTP server.

Anthony
0
 
ksivananthCommented:
>>We have decided to use a FTP object to connect to a FTP server on the UNIX box. We developed our FileSystem objects and use the Java File chooser to traverse the server directories

but this is what exactly I have suggested you!
0
 
ksivananthCommented:
>>However, the first answer given is the best way to go if you don't use an FTP server.

the problem is, mounting may not be possible for a machine in different network and its killing job for ITES due to various security reasons.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 4
  • 3
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now