# Adding a Java class

**URL:** <https://forum.inductiveautomation.com/t/adding-a-java-class/12555>\
**Category:** General Discussion\
**Created:** [January 12, 2017, 7:45pm UTC](https://forum.inductiveautomation.com/t/adding-a-java-class/12555 "2017-01-12T19:45:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![adolfo.rafael.martin](https://avatars.discourse-cdn.com/v4/letter/a/ac8455/32.png) [@adolfo.rafael.martin](https://forum.inductiveautomation.com/u/adolfo.rafael.martin)\
**Post date:** [January 12, 2017, 7:45pm UTC](https://forum.inductiveautomation.com/t/adding-a-java-class/12555/1 "2017-01-12T19:45:11Z")

</div>

Hi;

I added

wrapper.java.classpath.3=lib/javax.websocket.jar

to C:\Program Files\Inductive Automation\Ignition\data\ignition.conf

And, I’ve restarted the Ignition Gateway service.

I see

INFO | jvm 1 | 2017/01/12 14:47:38 | _sys-package-mgr_: processing modified jar, ‘C:\Program Files\Inductive Automation\Ignition\lib\javax.websocket.jar’

in

Ignition/logs/wrapper.log

But, when I

from javax.websocket import \*

I get

ImportError: No module named javax.websocket

Any clues would be appreciated.

---

<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:** [January 13, 2017, 11:35pm UTC](https://forum.inductiveautomation.com/t/adding-a-java-class/12555/2 "2017-01-13T23:35:10Z")

</div>

This approach will only load that jar for gateway scripts. Scripts that run in the client don’t have access to the gateway’s jars, only the system jars on each local workstation and the jars packaged into the app by modules.
