I have written a very simple java class file, which invokes
a Python script
using JEP.
Code snippet:-
-------------------
Jep jep = new Jep(false);
jep.runScript("C:\\temp\\testscript.py");
jep.close();
Now inside this Python script I want to make Java calls
using JPype.
If I use startjvm() inside this Python script, a Runtime
Error (exception)
is thrown.
Also tried attachThreadToJVM(), but doesn't work, again
Runtime Error.
The interaction shown below should happen in a single
process.
JAVA ==> jep ==> PYTHON ==> jpype ==> JAVA
As suggested by Mr. Menard can a sister method to
startJVM be provided, which attaches to the
currently running JVM instead of starting a new one.
With best regards,
SKN (shankarnarahari@yahoo.com)