# How to import .jar files to Ignition v8.1

**URL:** <https://forum.inductiveautomation.com/t/how-to-import-jar-files-to-ignition-v8-1/70435>\
**Category:** Ignition\
**Tags:** scripting, ignition81\
**Created:** [February 28, 2023, 6:51pm UTC](https://forum.inductiveautomation.com/t/how-to-import-jar-files-to-ignition-v8-1/70435 "2023-02-28T18:51:49Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![tyler.bennett](https://avatars.discourse-cdn.com/v4/letter/t/f04885/32.png) [@tyler.bennett](https://forum.inductiveautomation.com/u/tyler.bennett)\
**Post date:** [February 28, 2023, 6:51pm UTC](https://forum.inductiveautomation.com/t/how-to-import-jar-files-to-ignition-v8-1/70435/1 "2023-02-28T18:51:49Z")

</div>

I am looking for the latest instructions on how to import third party .jar files and make the java classes available to Ignition's Python/Jython scripting environment (Ignition version 8.1).

My specific use case is trying to use the AWS Java SDK to export files to AWS S3 buckets. My plan is to use the v1 SDK as it has a downloadable .jar file. v2 is available but seems to require creation of a maven project and that is a little beyond my limited java know-how (at present).

- [Set up the AWS SDK for Java](https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/setup-install.html)
- [aws-java-sdk.zip](https://sdk-for-java.amazonwebservices.com/latest/aws-java-sdk.zip)

The [Ignition v8.1 manual section on Importing Third Party Libraries](https://docs.inductiveautomation.com/display/DOC81/Libraries#Libraries-Importing3rdPartyLibraries) only makes reference to importing python (.py) libraries.

A few old forum threads discuss packing the .jar file with Pack200 and placing the packed and unpacked files in `lib/core/gateway` , `lib/core/client` , `lib/core/designer` , or `lib/core/common` folders, depending on the scope you want to be able to access them in. But those form threads are quite old and seem to apply to v7.9. Those same threads suggest that method is not officially supported.

- [Importing JAR Files](https://forum.inductiveautomation.com/t/importing-jar-files/10811/2)
- [Adding java custom classes to Ignition](https://forum.inductiveautomation.com/t/adding-java-custom-classes-to-ignition/15202)

Any guidance on using the AWS java SDK or suggestion of alternate methods to interact with AWS S3 buckets is appreciated.  
Thanks

---

<div class="post-metadata">

**Author:** ![jcoffman](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jcoffman/32/6429_2.png) [@jcoffman](https://forum.inductiveautomation.com/u/jcoffman)\
**Post date:** [February 28, 2023, 7:12pm UTC](https://forum.inductiveautomation.com/t/how-to-import-jar-files-to-ignition-v8-1/70435/2 "2023-02-28T19:12:50Z")

</div>

Hi @tyler.bennett,

The "correct" answer is to use the Module SDK to write a module which exposes the appropriate java libraries through the scripting system.

The [GitHub - inductiveautomation/ignition-sdk-examples: Ignition SDK Example Projects](https://github.com/inductiveautomation/ignition-sdk-examples) repository contains a scripting example as well as some notes about creating a module at the bottom of the README.

You can also checkout the #module-development section for some additional help if needed.

Hope that helps,  
Jonathan C

---

<div class="post-metadata">

**Author:** ![albetro.15](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/albetro.15/32/3922_2.png) [@albetro.15](https://forum.inductiveautomation.com/u/albetro.15)\
**Post date:** [March 30, 2023, 5:42pm UTC](https://forum.inductiveautomation.com/t/how-to-import-jar-files-to-ignition-v8-1/70435/3 "2023-03-30T17:42:12Z")

</div>

@jcoffman Are the "incorrect" ways no longer possible ? I tried to add the jar on the different lib/core/ folders and can't get it to work.

Thanks in advance !

---

<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:** [March 30, 2023, 5:55pm UTC](https://forum.inductiveautomation.com/t/how-to-import-jar-files-to-ignition-v8-1/70435/4 "2023-03-30T17:55:11Z")

</div>

> [@albetro.15](#):
>
> can't get it to work.

Try placing the jars in `lib/core/common`. Don't use pack200. Restart your gateway.

---

<div class="post-metadata">

**Author:** ![albetro.15](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/albetro.15/32/3922_2.png) [@albetro.15](https://forum.inductiveautomation.com/u/albetro.15)\
**Post date:** [March 31, 2023, 7:53am UTC](https://forum.inductiveautomation.com/t/how-to-import-jar-files-to-ignition-v8-1/70435/5 "2023-03-31T07:53:50Z")

</div>

Thanks @pturmel  
I'm trying to use Jsch but restarting gateway and designer doesn't work.  
I can't get it to recognize it or import it.

---

<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:** [March 31, 2023, 12:10pm UTC](https://forum.inductiveautomation.com/t/how-to-import-jar-files-to-ignition-v8-1/70435/6 "2023-03-31T12:10:37Z")

</div>

Does `Jsch` have dependencies? You'll need to examine your gateway wrapper log shortly after startup to look for library problems. (Not the logs from the web page--the wrapper log text file.)

---

<div class="post-metadata">

**Author:** ![albetro.15](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/albetro.15/32/3922_2.png) [@albetro.15](https://forum.inductiveautomation.com/u/albetro.15)\
**Post date:** [April 3, 2023, 9:14am UTC](https://forum.inductiveautomation.com/t/how-to-import-jar-files-to-ignition-v8-1/70435/7 "2023-04-03T09:14:58Z")

</div>

The wrapper log doesnt show an error  
After checking, what doesnt work is the implementation on the designer.  
Gateway-scoped scripts seem to find the functions on the Jsch.jar

For some reason the designer doesn't seem to see the jar

---

<div class="post-metadata">

**Author:** ![Jackson\_Corley](https://avatars.discourse-cdn.com/v4/letter/j/9e8a1a/32.png) [@Jackson\_Corley](https://forum.inductiveautomation.com/u/Jackson_Corley)\
**Post date:** [October 5, 2023, 2:27pm UTC](https://forum.inductiveautomation.com/t/how-to-import-jar-files-to-ignition-v8-1/70435/8 "2023-10-05T14:27:03Z")

</div>

I am trying to use Jsch as well. Did you have any success with this?
