How can I read from a Windows shared drive in a platform independent way using Java?
Asked Answered
B

2

2

How can I read from a Windows shared drive using Java in such a way that the Java code which performs the reading could run equally correctly on any platform?

Barberabarberry answered 23/6, 2010 at 10:1 Comment(3)
Isn't it "Windows share drive" and "platform independent" a contradiction?Sabah
@kgiannakakis: Only as much as "How can I ssh into a Solaris machine in a platform indepenent way?" is a contradiction. So no: it's perfectly possible to do that without restricting the set of machines the client runs on (at least without restricting it further than "anything that runs Java").Argolis
@Sabah I've changed the wording. Maybe it makes more sense to you now?Barberabarberry
A
6

You can use JCIFS to access SMB/CIFS shares using pure Java code.

Argolis answered 23/6, 2010 at 10:5 Comment(0)
T
0

apache commons vfs is always a good choice.

Thunderbolt answered 23/6, 2010 at 10:6 Comment(1)
Interesting. Unfortunately the CIFS support doesn't seem to be officially released yet.Argolis

© 2022 - 2024 — McMap. All rights reserved.