# Adding a Java class

**URL:** <https://forum.inductiveautomation.com/t/adding-a-java-class/12549>\
**Category:** Ignition\
**Created:** [January 11, 2017, 7:25pm UTC](https://forum.inductiveautomation.com/t/adding-a-java-class/12549 "2017-01-11T19:25:39Z")\
**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 11, 2017, 7:25pm UTC](https://forum.inductiveautomation.com/t/adding-a-java-class/12549/1 "2017-01-11T19:25:39Z")

</div>

I wasn’t able to post in Feature Request. So, redirect me if this is not he best place for this question.

I’m trying to import from javax.websocket.\*

How can I add to the Java Class Path so I can import other Java classes such as this?

Or, what location should I put a Java class into so that I can import using the Class Path the built in Jython is already using?

---

<div class="post-metadata">

**Author:** ![adam.morales](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/adam.morales/32/3405_2.png) [@adam.morales](https://forum.inductiveautomation.com/u/adam.morales)\
**Post date:** [January 12, 2017, 12:33am UTC](https://forum.inductiveautomation.com/t/adding-a-java-class/12549/2 "2017-01-12T00:33:02Z")

</div>

Java classes can be imported just like any other package, as long as they are available in the Java installation.

The syntax for this is:  
import javax.swing  
or  
from java.lang import Math

If I am not mistaken, javax.websocket is a Java EE package, and is not available in Java SE
