# Problem when import other \*.jar into SDK

**URL:** <https://forum.inductiveautomation.com/t/problem-when-import-other-jar-into-sdk/3825>\
**Category:** Module Development\
**Created:** [January 5, 2012, 10:36am UTC](https://forum.inductiveautomation.com/t/problem-when-import-other-jar-into-sdk/3825 "2012-01-05T10:36:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wengzijue](https://avatars.discourse-cdn.com/v4/letter/w/ee59a6/32.png) [@wengzijue](https://forum.inductiveautomation.com/u/wengzijue)\
**Post date:** [January 5, 2012, 10:36am UTC](https://forum.inductiveautomation.com/t/problem-when-import-other-jar-into-sdk/3825/1 "2012-01-05T10:36:26Z")

</div>

When I import other java class (\*.jar) into ignition SDK in eclipse,it succesed when building the module,but it can’t run (java.lang.NoClassDefFoundError showed in log of gateway ),how to import other \*.jar into our project and let it run well,Thank you very much!

---

<div class="post-metadata">

**Author:** ![bryan\_cook](https://avatars.discourse-cdn.com/v4/letter/b/a8b319/32.png) [@bryan\_cook](https://forum.inductiveautomation.com/u/bryan_cook)\
**Post date:** [February 14, 2012, 4:05am UTC](https://forum.inductiveautomation.com/t/problem-when-import-other-jar-into-sdk/3825/2 "2012-02-14T04:05:43Z")

</div>

Are you packaging the \*.jar file up within your \*.modl file? If not, I believe that’s a first step you’ll have to take. After tackling that, I think you’ll want to add an entry for your \*.jar file within the module.xml file, too.

I encountered a similar error myself when creating a module that used two \*.jar files instead of one … ended up taking the approach above to resolve my issue. I took the Ant script from the examples within the SDK, trimmed it down and adjusted it to make sure to copy the appropriate \*.jar file to the appropriate directory before creating the \*.modl file.

Hope it helps!
