To use 3rd party libraries that includes classes in packages other than com, org and java, you can preface the package with the text "Packages.". In other words, to use the NtlmAuthenticator class from the JCIFS library you can use the following:
var myAuth = new Packages.jcifs.smb.NtlmAuthenticator();
Alternatively, you can import the package and use the class as follows:
importPackage(Packages.jcifs.smb);
var myAuth = new NtlmAuthenticator();
For an explanation on the "Packages." keyword, see the following link which states the following:
External packages and classes can also be used as in Rhino. Make sure your .jar
or .class
file is on you classpath then you may import them into your JavaScript application. These packages are likely not in the java
package, so you'll need to prefix the package name with "Packages.
"