Apologies if my question is noob. I\'m running Django 1.2 with pgsql 8.4 and I\'m required to run a Java program after getting the inputs from the user, does some calculatio
If all you are doing is calling Java for some calculations, then subprocess is the easiest way, but I just wanted to throw another option out there.
JPype is a package that lets you run a JVM inside your Python program while calling the Java code as if it were Python (example).
That is, it's like Jython in that you call Java code directly and like subprocess in that you are actually running CPython. Consider JPype if for some reason the Java code is not easy to call from a shell script (aka, subprocess) or if a lot of two-way communication is necessary.