規劃使用jcifs.Tried用一個簡單的方法來讀取從上一個Ubuntu的Windows中的文件在Java中:jcifs.smb.SmbAuthException:登錄失敗:未知的用戶名或密碼錯誤。
String user = "mydomain;myuser:mypassword";
NtlmPasswordAuthentication auth = new NtlmPasswordAuthentication(user);
SmbFile remotefile = new SmbFile("smb://myserver/myfolder/myfile.jar",auth);
即使知道服務器的工作原理和登錄值是正確的,我得到的是登錄失敗,這裏可能是什麼問題?
什麼是返回的登錄失敗代碼。對於JCIFS錯誤代碼列表http://jcifs.samba.org/ntstatus.txt – 2012-07-23 06:29:05
嘿,你解決了這個問題?如果如何?我有同樣的問題。 – mdp 2012-10-08 19:03:51