[1.1.1] Jython: special situations - need to be documented or fixed if possible

Bug #1657355 reported by RaiMan on 2017-01-18
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Sikuli
Low
RaiMan

Bug Description

********************** import of java stuff
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 )

--- workaround
In the REPL, i can do:
  from com.sun.jna.platform.win32 import *
but this does not work with the interpreter.

In the interpreter, I must do:
  from com.sun.jna.platform.win32 import Win32
and import each one separately

Maybe something to do with Java package scanning as detailed here:
http://www.jython.org/jythonbook/en/1.0/ModulesPackages.html#java-package-scanning

RaiMan (raimund-hocke) on 2017-01-18
Changed in sikuli:
status: New → In Progress
importance: Undecided → Low
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.1.1
description: updated
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related questions