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.
There are a couple of ways to connect to a folder that has been shared over the network. The fastest way is by typing the Universal Naming Convention (UNC) path in the Start, Run dialog box. The UNC defines the path to a shared folder using the format \\server\sharename.
If you open a file with such a path, the program will crash when you try to import a glazing system. You can solve this problem by mapping a normal drive letter to the path that has the UNC path.
You are able to create a UNC path in Windows Explorer. Simply, right-click a folder and select one of the Share menu options to assign it a share name.
Universal naming convention (UNC) paths, which are used to access network resources, have the following format: A server or host name, which is prefaced by \\ . The server name can be a NetBIOS machine name or an IP/FQDN address (IPv4 as well as v6 are supported).
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With