+1. Unable to use apache commons stuff or Joda time. Spent countless hours doing stuff the long way just because I haven't figured out how to use libraries that arent already included. Would be a huge timesaver to have this easily done inside knime. Something like pasting a link to the jar and clicking add, would be lovely!
No issues here. I'm attaching an example using the Apache Commons Math lib, but I've recently used different libraries as well without problems.
My usual steps:
Add the Java Snippet node to the workflow
Open configuration
Go to "Additional Libraries", add the jar file (in case you want the workflow to be portable, add the JAR file into the workflow and specify a "KNIME URL")
Go to "Java Snippet" tab, import the classes in the "Your custom import" section, e.g. write "import org.apache.commons.math3.fraction.Fraction;" (the editor should provide you with auto completion on ctrl+space)
Write code
In case your imported classes are not available, I would probably suggest inspecting the added JAR file first by unzipping it and verifying that it contains .class files and a META-INF directory with a MANIFEST.MF file: