Rasmus
Rasmus

Reputation: 8476

Integrating python webapp with some jar files

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.

Upvotes: 0

Views: 145

Answers (2)

Imran
Imran

Reputation: 90999

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)

Upvotes: 0

Abdul Kader
Abdul Kader

Reputation: 5842

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

Upvotes: 1

Related Questions