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
2008-09-19 12:44:51
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
2008-09-23 09:01:51
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
2008-12-04 21:47:00