I'm trying connect remotely to windows machine and fetch files from this machine. this is my code,
path = path.replace(":","");
path = path.replace("\\","/");
String smbpath="smb://"+host+":445/"+path; //c/alon2.txt";
NtlmPasswordAuthentication auth = new NtlmPasswordAuthentication(user+":"+password);
SmbFile smbFile = new SmbFile(smbpath,auth);
SmbFileInputStream input = new SmbFileInputStream(smbFile);
Files.copy(input, destPath.toPath());
System.out.println("completed fetching file");
return destPath;
and I got this exception, "Plain text passwords are disabled", i tried to put jcifs.Config.setProperty("jcifs.smb.client.disablePlainTextPasswords","true"); and it doesnt work, and i dont want to disable the smb 3rd party in