# Cannot access classes from org.knime.core bundle in Java Snippet node

**URL:** <https://forum.knime.com/t/cannot-access-classes-from-org-knime-core-bundle-in-java-snippet-node/85754>\
**Category:** KNIME Analytics Platform\
**Tags:** java-snippet, bug\
**Created:** [January 14, 2025, 4:50pm UTC](https://forum.knime.com/t/cannot-access-classes-from-org-knime-core-bundle-in-java-snippet-node/85754 "2025-01-14T16:50:41Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![BenjaminMoser](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/b/ea666f/32.png) [@BenjaminMoser](https://forum.knime.com/u/BenjaminMoser)\
**Post date:** [January 31, 2025, 4:07pm UTC](https://forum.knime.com/t/cannot-access-classes-from-org-knime-core-bundle-in-java-snippet-node/85754/4 "2025-01-31T16:07:48Z")

</div>

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”.

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/0/7/07d4da5d4d6027dc5e85780c8831e32dbdffa1e3.png)

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/4/1/414da1c5f4c4fd79c1afd0c955e4fb86caec74eb.png)

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

---

_[View the full topic](https://forum.knime.com/t/cannot-access-classes-from-org-knime-core-bundle-in-java-snippet-node/85754)._
