如何在 Java 中从 Linux 打开 UNC 路径?

发布于 2024-07-16 10:22:11 字数 150 浏览 1 评论 0原文

是否有任何可用的库允许我在 Linux 上的 Java 给定 UNC 路径的情况下读取和写入 Windows 文件共享。

这在 Windows 盒子本身上是微不足道的,而且我知道 smbclient 方法,但我希望通过放入库来做到这一点。

谢谢。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

別甾虛僞 2024-07-23 10:22:11

看看 jcifs。 听起来像是您正在寻找的东西。

来自 jcifs 网站:

JCIFS 是一个开源客户端库,它以 100% Java 实现 CIFS/SMB 网络协议。 CIFS是Microsoft Windows平台上的标准文件共享协议(例如Map Network Drive...)。 该客户端广泛用于大型 Intranet 的生产中。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文