Here is an importPackage example: importPackage(java.io);
It works like the Java import statement;
Once you have the jar files on your buildpath (which it sounds like you do) then you can also reference the objects specifically.
This code works in my server side JavaScript library too: var xl=new org.apache.poi.hssf.usermodel.HSSFWorkbook();