# NoClassDefError coming from an External JAR

**URL:** <https://forum.inductiveautomation.com/t/noclassdeferror-coming-from-an-external-jar/17683>\
**Category:** Module Development\
**Tags:** scripting, ignition79\
**Created:** [April 12, 2018, 11:42am UTC](https://forum.inductiveautomation.com/t/noclassdeferror-coming-from-an-external-jar/17683 "2018-04-12T11:42:43Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![gcarlson](https://avatars.discourse-cdn.com/v4/letter/g/848f3c/32.png) [@gcarlson](https://forum.inductiveautomation.com/u/gcarlson)\
**Post date:** [April 12, 2018, 11:42am UTC](https://forum.inductiveautomation.com/t/noclassdeferror-coming-from-an-external-jar/17683/1 "2018-04-12T11:42:43Z")

</div>

Morning all. If I have put this question in the wrong section of the forum. I am running an external JAR file as a library for RFID tag readers with Ignition. I have had two systems running this JAR file, with an identical jython script on each system. Same .proj file, same Ignition version (7.9.4) and same Java version (8u\_121). On one system it runs fine, but on the second system, I get a NoClassDefError when the import statement is called up. Linked below is the output from the Java console when the script is called(New users cannot upload attachments 😕 ). I have tried windows updates, JAVA version updates, repacking the JAR (incase it got corrupted during transfer). I can run the java file standalone as well. Any advice or pointers would be much appreciated.

[https://drive.google.com/file/d/18aJ9Q894BNuBpeD1xnWJOHjUc57LvY51/view?usp=sharing](https://drive.google.com/file/d/18aJ9Q894BNuBpeD1xnWJOHjUc57LvY51/view?usp=sharing)

---

<div class="post-metadata">

**Author:** ![brandon1](https://avatars.discourse-cdn.com/v4/letter/b/ea666f/32.png) [@brandon1](https://forum.inductiveautomation.com/u/brandon1)\
**Post date:** [April 12, 2018, 12:15pm UTC](https://forum.inductiveautomation.com/t/noclassdeferror-coming-from-an-external-jar/17683/2 "2018-04-12T12:15:37Z")

</div>

Is this two separate gateways?  
Did you place the JAR file in: “C:\Program Files\Inductive Automation\Ignition\lib\core\common” (windows machine) in each gateway?

---

<div class="post-metadata">

**Author:** ![gcarlson](https://avatars.discourse-cdn.com/v4/letter/g/848f3c/32.png) [@gcarlson](https://forum.inductiveautomation.com/u/gcarlson)\
**Post date:** [April 12, 2018, 12:20pm UTC](https://forum.inductiveautomation.com/t/noclassdeferror-coming-from-an-external-jar/17683/3 "2018-04-12T12:20:08Z")

</div>

Yes, two seperate gateways. Both have the jar and packed jar in the same location (C:\Program Files\Inductive Automation\Ignition\lib\core\common)

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [April 12, 2018, 12:34pm UTC](https://forum.inductiveautomation.com/t/noclassdeferror-coming-from-an-external-jar/17683/4 "2018-04-12T12:34:27Z")

</div>

Which jar supplies gnu.io.SerialPortEventListener ?

---

<div class="post-metadata">

**Author:** ![gcarlson](https://avatars.discourse-cdn.com/v4/letter/g/848f3c/32.png) [@gcarlson](https://forum.inductiveautomation.com/u/gcarlson)\
**Post date:** [April 12, 2018, 1:09pm UTC](https://forum.inductiveautomation.com/t/noclassdeferror-coming-from-an-external-jar/17683/5 "2018-04-12T13:09:13Z")

</div>

The jar that should be supplying it is com.lievautomation,jar. That is the custom jar that I packaged the source into

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [April 12, 2018, 2:12pm UTC](https://forum.inductiveautomation.com/t/noclassdeferror-coming-from-an-external-jar/17683/6 "2018-04-12T14:12:00Z")

</div>

Please look in the jar and make sure.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [April 12, 2018, 2:33pm UTC](https://forum.inductiveautomation.com/t/noclassdeferror-coming-from-an-external-jar/17683/7 "2018-04-12T14:33:57Z")

</div>

A quick google suggests you need to separately install the [RXTX package](http://rxtx.qbang.org/wiki/index.php/Main_Page). As an LGPL licensed project, a commercial user would have to take special steps to ship this themselves, restrictions that are difficult for third parties to satisfy in Ignition.

---

<div class="post-metadata">

**Author:** ![gcarlson](https://avatars.discourse-cdn.com/v4/letter/g/848f3c/32.png) [@gcarlson](https://forum.inductiveautomation.com/u/gcarlson)\
**Post date:** [April 12, 2018, 2:43pm UTC](https://forum.inductiveautomation.com/t/noclassdeferror-coming-from-an-external-jar/17683/8 "2018-04-12T14:43:48Z")

</div>

Thanks for the info pturmel. Forgive me, as I am a bit new with ignition, but how would I go about installing the RXTX Package for ignition?

---

<div class="post-metadata">

**Author:** ![gcarlson](https://avatars.discourse-cdn.com/v4/letter/g/848f3c/32.png) [@gcarlson](https://forum.inductiveautomation.com/u/gcarlson)\
**Post date:** [April 12, 2018, 2:56pm UTC](https://forum.inductiveautomation.com/t/noclassdeferror-coming-from-an-external-jar/17683/9 "2018-04-12T14:56:28Z")

</div>

I have figured out installing the DLL and JAR, thank you for pointing me in teh right direction on that one. Now I am just running into the issue of it being a 32 bit dll on a 64 bit system. I’ll do some research on what I can do to fix that. Thanks!

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [April 12, 2018, 5:13pm UTC](https://forum.inductiveautomation.com/t/noclassdeferror-coming-from-an-external-jar/17683/10 "2018-04-12T17:13:29Z")

</div>

Maybe the folks who produced the liveautomation jar file can support you.

---

<div class="post-metadata">

**Author:** ![gcarlson](https://avatars.discourse-cdn.com/v4/letter/g/848f3c/32.png) [@gcarlson](https://forum.inductiveautomation.com/u/gcarlson)\
**Post date:** [April 13, 2018, 1:22pm UTC](https://forum.inductiveautomation.com/t/noclassdeferror-coming-from-an-external-jar/17683/11 "2018-04-13T13:22:59Z")

</div>

So, the issue was the rxtx serial dll being compiled for 32 bit. Running 32 bit java resolved that issue, and based on the usage, doesn’t cause any other issues. Thanks for all the help in getting this solved.
