# Using KNIME as external library in JAVA

**URL:** <https://forum.knime.com/t/using-knime-as-external-library-in-java/341>\
**Category:** KNIME Analytics Platform\
**Created:** [December 4, 2008, 5:06pm UTC](https://forum.knime.com/t/using-knime-as-external-library-in-java/341 "2008-12-04T17:06:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bel](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/b/d6d6ee/32.png) [@bel](https://forum.knime.com/u/bel)\
**Post date:** [December 4, 2008, 5:06pm UTC](https://forum.knime.com/t/using-knime-as-external-library-in-java/341/1 "2008-12-04T17:06:08Z")

</div>

Hello, i am looking for some help with using knime nodes in java code.

For example I would like to know how to use ARRFReader node and filter the arrf file with a FilterRow node, doing this in java code. Can you explain it to me or show me an example?

Thanks a lot

---

<div class="post-metadata">

**Author:** ![michael.hecht](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/m/f6c823/32.png) [@michael.hecht](https://forum.knime.com/u/michael.hecht)\
**Post date:** [January 22, 2009, 9:26pm UTC](https://forum.knime.com/t/using-knime-as-external-library-in-java/341/2 "2009-01-22T21:26:06Z")

</div>

I have no answer, but the same question. It would be really helpful to get some simple examples how to load files and models built with knime in own Java code - not interactive but to use the model output on new data.

---

<div class="post-metadata">

**Author:** ![thor](https://forum-cdn.knime.com/user_avatar/forum.knime.com/thor/32/4_2.png) [@thor](https://forum.knime.com/u/thor)\
**Post date:** [January 23, 2009, 8:56am UTC](https://forum.knime.com/t/using-knime-as-external-library-in-java/341/3 "2009-01-23T08:56:37Z")

</div>

Good morning everyone,

KNIME nodes are not intended to be run outside of KNIME. Even if this worked in principle (neglecting problems like proper initialization, class loading, etc.) it would be quite complex, because the nodes needs to be used in exactly the same way like KNIME does. For example the right order of reset, load/validateSettings, configure, execute calls is very important.  
An easier way is to write a separate Eclipse plugin for KNIME and use this somehow together with the BatchExecutor or just the BatchExecutor with a pre-configured workflows alone (see [http://www.knime.org/documentation/faq#q12](http://www.knime.org/documentation/faq#q12) and several other forum posts).

Regards,

Thorsten

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [June 23, 2023, 8:14pm UTC](https://forum.knime.com/t/using-knime-as-external-library-in-java/341/4 "2023-06-23T20:14:29Z")

</div>


