[HOW TO] Import Jars into Ignition

Here is a python script to import jars into ignition. Extract the rar file, place the jars in the jars folder, modify the id, name and description properties in modules.xml, and run MakeModule.py. You need the Java JDK installed and Python 3.x

To import the modules, you would do something as follows

import sys
sys.add_package("org.apache.poi.ss.usermodel")
import org.apache.poi.ss.usermodel.Workbook

Make Module.rar (1.18 KB)

Hi Kyle,

I just tried to create a module with a GlobalTime.jar I downloaded to test. The Python script does “something” but the only result is a folder called “Temp” and it is empty.

JDK 6.24 and Python 3.2 are available on my computer. What could be the problem?

Hi Kyle,

Is there any update in this script ?. We tried this method and ended with an error as mentioned below:

Traceback (most recent call last): File "C:\Users\mitparlak\Desktop\MakeModule\MakeModule.py", line 29, in <modul e> p = subprocess.Popen(command) File "C:\Python32\lib\subprocess.py", line 736, in __init__ restore_signals, start_new_session) File "C:\Python32\lib\subprocess.py", line 946, in _execute_child startupinfo) WindowsError: [Error 3] The system cannot find the path specified