# Add .JAR for using classes in Jython scripts

**URL:** <https://forum.inductiveautomation.com/t/add-jar-for-using-classes-in-jython-scripts/12529>\
**Category:** 3rd Party Modules\
**Created:** [January 9, 2017, 10:37am UTC](https://forum.inductiveautomation.com/t/add-jar-for-using-classes-in-jython-scripts/12529 "2017-01-09T10:37:10Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![code\_skin](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@code\_skin](https://forum.inductiveautomation.com/u/code_skin)\
**Post date:** [May 1, 2019, 8:39pm UTC](https://forum.inductiveautomation.com/t/add-jar-for-using-classes-in-jython-scripts/12529/13 "2019-05-01T20:39:14Z")

</div>

I was able to get this to work.

I used pack200 to create a pack.gz and placed the jar and the pack.gz files in the lib/core/common.  
I restarted the gateway and my designer and I was able to run `from com.pubnub.api import Logger` without any errors.

Thanks to @Kevin.Herron in this post: [Adding java custom classes to Ignition](http://forum.inductiveautomation.com/t/adding-java-custom-classes-to-ignition/15202/2?u=code_skin)

NOTE\* his disclaimer about official support and the SDK is the way to go.

---

_[View the full topic](https://forum.inductiveautomation.com/t/add-jar-for-using-classes-in-jython-scripts/12529)._
