Question

Actually i'm about to start a project, in the company we are using java as a main technology in owr web app server (IBM WebSpher), but now we need to integrate existing technology with a new product recently purchased and is developed in C/CPython and ofer a SDK also in C and implementation in CPython (.pyd file), now i want to know if the kind of libraries are supported in jython actyally i'm working with Jython 2.7b1? or is there a way to use these kind of libraries?

Thanks and regards, Serch

Was it helpful?

Solution

From the Jython FAQ...

Jython programs cannot use CPython extension modules written in C. These modules usually have files with the extension .pyc, .pyd or .dll. If you want to use such a module, you should look for an equivalent written in pure Python or Java.

The only workaround would be to use JNI to embed CPython in Java, although it would probably defeat the purpose of using Jython.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top