JNA works well with Jython, and in my experience it's very easy to use.
Not sure if anyone tried JNA with Jython? Does it work?
> Jython does not support win32api. Although certainly technically
> feasible, it would be of very low priority for Jython development.
> Alternatives include using a commercial package like J/Invoke (are
> there good open source alternatives?), or some CPython/Jython
> Jython can readily import either Java or Python. The question for
> Python modules is whether they have either native dependencies, or
> rely on something OS specific. Anything like that would require some
> porting. In many ways, this is no different than in CPython,
> especially for crossing the Windows/*nix divide. In addition, we
> still have some gaps in our standard library support.?
> - Jim
> On Tue, Nov 24, 2009 at 7:03 AM, kilon <email@example.com> wrote:
> I am no expert on this field but Jython gives priority to Java libraries over
> python libraries. Only java libraries work out of the box. Cpython libraries
> need to be converted to jython in order to work. However jython already
> includes many cpython libraries that have been converted to Jython (which is
> java bytecode).
> Most likely win32api is not jython friendly yet. And because it seems like
> an Os specific , ?I do not see it implemented.
> vistar76 wrote:
>> Hi, Sorry for my English.
>> I'm use Eclise and PyDev.
>> I have a problem with "import win32api", I'm created an application Java
>> and Python, and I'm import win32api but the message return : "ImportError:
>> No module named win32api". I don't understand because with Python run, my
>> application is successful start but Jython run return ImportError. The
>> repertories of Win32api is Python25/Lib/site-packages/win32 so I'm insert
>> the path but return always error.
>> Jython doesn't read win32api.pyd ?
>> Help me please