Adding a Java class

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.

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.