[jcifs] The network name cannot be found error
Michael B Allen
mba2000 at ioplex.com
Thu Jul 22 18:13:58 GMT 2004
On Thu, 22 Jul 2004 04:45:16 -0400
Eric Glass <eric.glass at gmail.com> wrote:
> public class ListShares {
>
> public static void main(String[] args) throws Exception {
> Config.setProperty("jcifs.smb.client.username", args[0]);
> Config.setProperty("jcifs.smb.client.password", args[1]);
> SmbFile[] shares = new SmbFile("smb://172.20.95.14/").listFiles();
> for (int i = 0; i < shares.length; i++) {
> System.out.println(shares[i]);
The only problem with this is that RAPs are sent over IPC$ so if IPC$ isn't
there you'll get "The network name cannot ..."
Mike
--
Greedo shoots first? Not in my Star Wars.
More information about the jcifs
mailing list