开发者

Python calling both Java and C modules, howto?

开发者 https://www.devze.com 2023-03-03 06:43 出处:网络
Jython calls Java modules, and C-language modules calla开发者_StackOverflowble from Python. What if a Python/Jython program needs to call some modules in Java and some in C, any solution?Jython partia

Jython calls Java modules, and C-language modules calla开发者_StackOverflowble from Python. What if a Python/Jython program needs to call some modules in Java and some in C, any solution?


Jython partially supports ctypes in last builds, so you should check whether current support is enough for your needs.

If not, you can go with JNA, http://www.flester.com/blog/2009/02/21/java-jna-jythonjruby-the-sweet-spot

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号