title: Error while connecting to windows drive from linux machine [via java program]
body: <p>I am trying to connect to windows network drive using <code>Jcifs = 1.3.17</code> in java</p>
  
  <p>code</p>
  
  <pre><code>String baseAddress = "smb://file-123/XYZ_Others/"
  String DOMAIN = "XYZ"
  smbFile = new SmbFile(baseAddress, new NtlmPasswordAuthentication(DOMAIN, userName, password))
  //How i am using  smbFile
  final boolean isDirectory = smbFile.isDirectory(); //getting error here
  </code></pre>
  
  <p>If i run the  code from mac it is working fine [it can able to connect] however if i try to run from linux [amazon cloud] i am getting following error</p>
  
  <pre><code>cifs.smb.SmbException: Failed to connect to server
          at jcifs.smb.SmbFile.connect0(SmbFile.java:882) ~[jcifs-1.3.17.jar:?]
          at jcifs.smb.SmbFile.queryPath(SmbFile.java:1335) ~[jcifs-1.3.17.jar:?]
          at jcifs.smb.SmbFile.exists(SmbFile.java:1417) ~[jcifs-1.3.17.jar:?]
          at jcifs.smb.SmbFile.isDirectory(SmbFile.java:1490) ~[jcifs-1.3.17.jar:?]
  </code></pre>
  
  <p>When i try to use smb client from command prompt</p>
  
  <pre><code>smbclient -L smb://test/ -U username -W ANT -R host -D DIR  
  </code></pre>
  
  <p>Getting error as</p>
  
  <pre><code>Connection to smb: failed (Error NT_STATUS_BAD_NETWORK_NAME)
  </code></pre>