views:

217

answers:

1

For IronPython there is a project - IronClad, that aims to transparently run C extensions in it. Is there a similiar project for Jython?

+1  A: 

You can probably use Java's loadLibrary to do that (provided it works in your platform's java). It is in the java library: java.System.loadLibrary().

Note that sometimes you will have to write a wrapper in C and/or in Java depending on the library you want to use and target system, since details are platform dependant. Refer to the documentation for more details.

nosklo
Thanks for your answer, but it was not what I was looking for. Propably it means that there is no similiar project in the Jython world.
sumek
Maybe not what you were hoping for, but there is pretty much no other way to do it. Jython is locked up to what java can do.
nosklo