# Adding java custom classes to Ignition

**URL:** <https://forum.inductiveautomation.com/t/adding-java-custom-classes-to-ignition/15202>\
**Category:** General Discussion\
**Tags:** ignition79, sdk, scripting\
**Created:** [August 30, 2017, 3:06pm UTC](https://forum.inductiveautomation.com/t/adding-java-custom-classes-to-ignition/15202 "2017-08-30T15:06:37Z")\
**Posts on this page:** 1\
**Showing post:** 11

<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 4, 2018, 6:44pm UTC](https://forum.inductiveautomation.com/t/adding-java-custom-classes-to-ignition/15202/11 "2018-04-04T18:44:55Z")

</div>

I have been trying to add the Apache POI jar to my gateway using this method, but when I run a button with the following code under it:

`import org.apache.poi.xssf.usermodel.XSSFWorkbook`

I get the following error:  
Traceback (most recent call last):

File “event:mousePressed”, line 1, in

ImportError: No module named poi

Ignition v7.9.6 (b2018012914)  
Java: Oracle Corporation 1.8.0\_161

I have both the packed and normal jar file under the common folder for the Ignition gateway. I also restarted the gateway multiple times but nothing has changed.

---

_[View the full topic](https://forum.inductiveautomation.com/t/adding-java-custom-classes-to-ignition/15202)._
