Using Java Classes
You can access any Java class in any JavaScript context:
var map = new Packages.java.util.LinkedHashMap();
The "Packages." at the beginning may be omitted for common top-level package domains, like "com", "net", "org", and "java". To avoid having to type out the fully-qualified class name every time, you can import the package:
importPackage(org.apache.commons.io);
FileUtils.getUserDirectory();
For classes in custom or non-standard libraries, create a resource (see Resources Settings Tab) containing your .jar file. Then include it on the channel in the Library Resources dependencies tab.