Place this component on your workflow ahead of any java node that requires additional java libraries not present in the standard KNIME bundles.
This checks if the stated jar file already exists within the current workflow data folder, and only downloads it if not found, or if the force-download option is selected, in which case it will pull a new copy regardless. This is useful if a new version of a jar is to be download, but locally the file is named without version number for portability (i.e. not having to reconfig the java node)
This component is based on a component written by Mydral for downloading a jar to the local data folder.
It has been modified so that the configuration can be changed (e.g. specify jar location and local file name) to make it reusable, and it now simply uses List File/Folders configured to use workflow data folder rather than using the workflow data area connector.
Once the required JAR file is present in the workflow data folder, configure Java Snippet using the Additional Libraries tab. Add the jar file using the Add KNIME URL button, and specify the jar file using the following KNIME URL format
knime://knime.workflow/data/MyJarFile.jar
This should then mean that the snippet can find the jar file no matter where the workflow has been saved, and should improve portability of the workflow.
The icon has also changed to avoid confusion with the original.
Original version by Mydral
Support for this version - contact @takbb Brian Bates
- Type: Flow Variablecontinue-okProvided no errors are encounted, flow can continue to next node.