开发者

Integrating python webapp with some jar files

开发者 https://www.devze.com 2023-03-01 07:12 出处:网络
Hi I have few jar files which are few calculations compiled into jar files. I have a python web app which is supposed to interact with these jar files and get me the data. I have heard that it can be

Hi I have few jar files which are few calculations compiled into jar files. I have a python web app which is supposed to interact with these jar files and get me the data. I have heard that it can be done using the java bridge.开发者_如何学运维 Can someone let me know how this could be done or at least point me to the right link.


I think what you are looking for is jython.You can interact back and forth between python and java using jython.


You could always run the jar files in a subprocess and use PIPE for IO (or temp files). This works pretty well for us (we are generating PDF from our Django app with flying saucer and iText)

0

精彩评论

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