Download JAR file

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

Options

Force Download
Choose this option if the jar file is to be downloaded even if already present locally. This would normally only be necessary if a new version is available, and the file being stored locally does not contain version numbering, for portability.
JAR filename
Specify the name of the JAR file as it is to be stored locally. This name can differ from the original download name if you wish, which will potentially make it more portable (e.g. you don't need to change the bundle location in the java snippet if the download jar file location is xyz.com/somejarfilev1.2.3.jar and you state the local name of the jar file without the version numbering, e.g. somejarfile.jar
Download URL for JAR file (inclduing file name)
Specify the full URL location where the JAR file can be found

Input Ports

This node has no input ports

Output Ports

Icon
Provided no errors are encounted, flow can continue to next node.

Nodes

Extensions

Links