Using python libraries in a Java Program
saroth at yahoo.com
Sun Jul 4 00:02:06 CEST 2004
> 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.
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