如何在Java中用Linux打开UNC路径? [英] How can I open a UNC path from Linux in Java?
问题描述
是否有任何库可以让我在Linux上从Java获取UNC路径时读取和写入Windows文件共享。
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.
在Windows上这是微不足道的盒子本身,我知道smbclient方法,但我希望通过放入一个库来实现。
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.
谢谢。
推荐答案
查看 jcifs 。这听起来像你在寻找。
Have a look at jcifs. It sounds like what you are looking for.
来自jcifs网站:
JCIFS是一个开源客户端库,在100%Java中实现CIFS / SMB网络协议。 CIFS是Microsoft Windows平台上的标准文件共享协议(例如Map Network Drive ...)。该客户广泛用于大型内联网的生产。
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.
这篇关于如何在Java中用Linux打开UNC路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!