How do I use JCIFS with apache VFS to access an SMB URL?

前端 未结 2 1901
闹比i
闹比i 2021-01-18 10:40

I am trying to access a folder on my local computer using an smb URL. my project is using the jars: commons-vfs2-2.0.jar and jcifs-1.3.17.jar (and all the other required jar

2条回答
  •  太阳男子
    2021-01-18 11:24

    I use different authentication method and it works, you may give it a shot.

    String url = "smb://10.0.2.2/TimeOut/";   
    NtlmPasswordAuthentication authen = new NtlmPasswordAuthentication(,,); 
    SmbFile smbFile = new SmbFile(url,authen);
    

提交回复
热议问题