---
title: "How to use Jython libraries"
canonical: "https://support.appfire.com/space/SUPPORT/89138100/How%20to%20use%20Jython%20libraries"
format: markdown
---
### Description

If you need to use some of the Jython/Python libraries normally found in the LIB directory of an install, then you have at least 2 choices both require a **Jython install on the Confluence server**. Jython needs to know the path to the library files.

1. Dynamic in code
2. Always available - environment variable

### Steps

1. Install Jython on your confluence server
2. Recommend setting environment variable
  1. Set **JYTHONPATH** to the library directory of your install, example: **/<path to Jython install>/LIB**
    - **PYTHONPATH** also works
  2. Restart Confluence with the environment variable set

### References

- [Jython Command Line and Environment](http://www.jython.org/docs/using/cmdline.html#environment-variables)