How can I open a UNC path from Linux in Java?

被刻印的时光 ゝ 提交于 2019-12-18 04:18:14

问题


Are there any libraries available that will allow me to read from and write to a Windows Fileshare given a UNC path from Java on Linux.

It's trivial on a windows box itself, and I'm aware of smbclient approaches, but I'm looking to do it by dropping in a library.

Thanks.


回答1:


Have a look at jcifs. It sounds like what you are looking for.

From the jcifs site:

JCIFS is an Open Source client library that implements the CIFS/SMB networking protocol in 100% Java. CIFS is the standard file sharing protocol on the Microsoft Windows platform (e.g. Map Network Drive ...). This client is used extensively in production on large Intranets.



来源:https://stackoverflow.com/questions/725829/how-can-i-open-a-unc-path-from-linux-in-java

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!