Using python libraries in a Java Program

Sam Roth saroth at
Sun Jul 4 00:02:06 CEST 2004

gohaku wrote:
> Hi everyone,
> I would like to know if it's possible to use python (libraries) in a
> Java Program.
> I do not want to use: Process proc = Runtime.getRuntime.exec(command)
> I am basically looking for something like the "Reversed" version of Jython.
> Thanks in advance.
> -gohaku
I think you can use Jython that way. Just compile your module to a 
.class file using jythonc, then use it like any other class. If you want 
to access python modules put "import org.python.modules.MODULENAME.*" in 
your Java program.

More information about the Python-list mailing list