Hey @s.roughley ,
sorry for the late reply.
I right now cannot give you details on why exactly this is not available in the Java Snippet node as expected.
I can say however, that it has to do with the way the org.knime.core plugin/bundle is represented on disk (in p2 terms, how it is installed in the resp. bundle pool). Concretely, if you look in the AP installation directory in the folder plugins
, you’ll see that some plugins are jars and some are directories.
If they are directories, they will (always, as far as I can see, and certainly for sure in the case of org.knime.core) contain a correponding jar file. That file is already set as the Bundle-ClassPath
in the Manifest.MF
.
Based on this, I can offer you the workaround to add that jar file under “Additional Libraries” instead of including it in “Additional Bundles”.
The drawback is that this path contains the bundle version, which means it will change with an update.
However, you can also supply the list of “Additional Libraries” via the flow variable jarFiles
, so it should be not too hard to add a couple of nodes that query the folder from that directory.
Best,
Ben