I have a python program, which runs on the CPython implementation, and inside it I must call a function defined in a java program. How can I do this?
It would be nic
I don't know for Python, but last time I had to call java from C application (NT service) I had to load jvm.dll. Take a look at JNI documentation.
jvm.dll
Also, you call always call
os.system("java com.myapp.MyClass")
if you are not concerned about performance.