i trying call python method java file.
mypython.py
def ab(): print "i calling"
myjava.class
public void call() { ab() // want call python method }
i don't have idea this.
when search on google info jython. , not using jython. if possible without jython. or best way call python code in java.
you use thrift example. you'd write python server , use java client access it. here's example java server & client , example python server & client. there's consistent example on front page, uses c++ server , python client.
the basic idea define interfaces using thrift idl, , generates language specific code you. thrift deal remote procedure call you.
Comments
Post a Comment