how can I invoke a Java code?

Jarek Zgoda jzgoda at
Fri Mar 23 11:30:59 CET 2007

momobear napisał(a):

> A friend of my write a Java program, and I want use it in my python
> program as a module. I searched the topic in Google and find maybe the
> better way is use GCJ to compile it. Is there any other way for me?
> the simple and speediness choice the better. thanks.

If the speed is crucial, I suggest compiling the Java code with GCJ,
then write Python extension module for the Java library. This is how the
Lucene indexing library is ported to Python, see

Jarek Zgoda

"We read Knuth so you don't have to."

More information about the Python-list mailing list