Slow file listing with jCIFS on Windows
Using new SmbFile("username:password@server/")
works, so I'm just using that.
Try Using below codes before any jCIFS classes are instantiated:
jcifs.Config.setProperty("resolveOrder", "DNS");
Thanks to Glenn's answer in JCIFS: file retrieval is too slow to be usable
Ref: https://jcifs.samba.org/src/docs/api/overview-summary.html