Solved

View Unix Files from Windows using JFileChooser

Posted on 2006-07-18
10
291 Views
Last Modified: 2008-03-10
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
Comment
Question by:anthony0007
  • 4
  • 3
  • 2
  • +1
10 Comments
 
LVL 23

Accepted Solution

by:
Ajay-Singh earned 250 total points
ID: 17132816
you can mount the unix filesystem on windows and access those files.
0
 
LVL 23

Expert Comment

by:Ajay-Singh
ID: 17132822
samba can be used for this - http://www.samba.org/
0
 

Author Comment

by:anthony0007
ID: 17133295
I need to do it programatically, so I can incorporate the behavior into my application.
0
 
LVL 23

Expert Comment

by:Ajay-Singh
ID: 17135801
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
 
LVL 26

Expert Comment

by:ksivananth
ID: 17135960
may be possible through implementing your own filesystemview using some ftp utility, not sure but!
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 35

Expert Comment

by:girionis
ID: 17136345
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
 
LVL 26

Expert Comment

by:ksivananth
ID: 17150349
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
 

Author Comment

by:anthony0007
ID: 17153811
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
 
LVL 26

Expert Comment

by:ksivananth
ID: 17156207
>>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
 
LVL 26

Expert Comment

by:ksivananth
ID: 17156232
>>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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Which is the latest version of Apache Tomcatl 3 50
maven example error 3 52
custom annotations 9 32
xampp tool 12 26
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now