0

Possible Duplicate:
Calling Java from Python

I am not much familiar with java.. but i want to use a java library (3rd party) inside python.? Lets say I have three libraries.

foo.java,bar.java,foobar.java

And then.. they define classes and their contructor takes one variable each

int foo1, int bar1 respectively

Now.. foo.java  and bar.java imports foobar.java

So basically.. i want to interact with foo.java and bar.java.. and then they interact with other java files..

How do i solve this.. I looked into other stackoverflow questions as well but most of them are like very high level questions for me whereas i feel i have a very simple need. any pointers thanks

Community
  • 1
  • 1
frazman
  • 32,081
  • 75
  • 184
  • 269
  • 1
    It's not going to be easy, unless you use [Jython](http://www.jython.org/). If not then you probably have to make interface modules in C using JNI, or to find other similar libraries that exist already for Python or C. – Some programmer dude Dec 24 '12 at 02:40

1 Answers1

3

You can try

1) Py4J or 2) JPYPE

Jayamohan
  • 12,734
  • 2
  • 27
  • 41