Comment 0 for bug 1657355

Revision history for this message
RaiMan (raimund-hocke) wrote :

Hi,

What is the best way to use 3rd party Java libraries with the SikuliX IDE?

Since this is Jython, I tried using load(...), which does add the jar to the sys.path variable, but the import statement fails.

I'm trying to use JNA (https://github.com/java-native-access/jna) so I can look through the window titles and find the one and then bring it to the front.

load('jna-4.3.0.jar')
load('jna-platform-4.3.0.jar')

from com.sun.jna.platform.win32 import *

[error] ImportError ( No module named jna )

Thanks