Accessing SMB2.1 or SMB3 share from java?

前端 未结 4 1758
说谎
说谎 2020-12-30 12:12

As Windows 2012R2 no longer supports the SMB1 protocol without some registry hacks has any had any success working with SMB shares in Java where only SMB2.1 or SMB3 are supp

4条回答
  •  悲哀的现实
    2020-12-30 12:38

    when use hierynomus/smbj v0.3.0, I get the exception like "ClassNotFoundException: sun.security.provider.MD4", then i use the follow code to resolve the problem.

    SmbConfig cfg = SmbConfig.builder().
                    withMultiProtocolNegotiate(true).
                    withSecurityProvider(new JceSecurityProvider(new BouncyCastleProvider())).
                    build();
    SMBClient client = new SMBClient(cfg);
    

提交回复
热议问题