How do I include and use external java libraries in my new KNIME plugin?
Follow these steps: • Create a lib directory in your KNIME plugin. • Copy the file(s) into the lib directory. (Java libraries are packed either as a zip or jar archive.) • Edit the META-INF/MANIFEST.MF file with the “Plug-in Manifest Editor”. • Go to the “Runtime” tab and add all necessary libraries to the “Classpath” list on the bottom-right corner using the “Add…” button. • Go the to “Build” tab and add the files to the list contained in the section “Extra classpath entries”. • Make sure that the lib directory is selected in both the “Binary Build” and “Source Build” list (in the same tab). • (Please note, adding jar files to the plugins build path, i.e. project context menu -> “Java Build Path” ->”Libraries” is not necessary.