In fact,accessing Windows shared folder from Linux ,you need run Samba service in Linux.
No, you don't. It's the other way around: You'd use Samba to run a Linux file server that looks like a Windows share (and is thus accessible from Windows).
The reason the File class can't be used is that it knows nothing of the SMB protocol that is used to access Windows shares. Luckily, the Samba guys have made available a
Java library that does:
JCIFS. It's API mimics the java.io classes very closely, so it's easy to convert any file I/O to use it instead.
[ November 28, 2006: Message edited by: Ulf Dittmer ]