You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have Python objects which depend on Java classes and so use import statements (of the Java classes) in the Python classes.
Naturally, using Jep, I can run my Python code (and indeed debug my Python code too) from my Java application fine.
My issue however is that if I want to run/debug some Python code, I always have to run it through the Java application.
If I just try to run some Python code from my Python IDE (e.g. PyCharm), I get errors about the Java import statements in the Python classes.
So my question is, is there is a way to run/debug Python code, which is integrated with Java classes, from the Python side such that the imported Java classes can be found?
OS Platform, Distribution, and Version: Windows and Linux
Jep currently only supports running a Java process with CPython embedded inside it. It does not support running a Python process with a JVM inside it. @bsteffensmeier and I have discussed adding the ability to embed the JVM in a Python process which would add what you're looking for, but I don't think either of us considers it a priority to be worked at this time.
You could do something like the the Jep tests which has a pretty simplistic Java main() that just immediately calls over to Python. But I realize that doesn't take advantage of IDE conveniences and it is not a great solution.
I have Python objects which depend on Java classes and so use import statements (of the Java classes) in the Python classes.
Naturally, using Jep, I can run my Python code (and indeed debug my Python code too) from my Java application fine.
My issue however is that if I want to run/debug some Python code, I always have to run it through the Java application.
If I just try to run some Python code from my Python IDE (e.g. PyCharm), I get errors about the Java import statements in the Python classes.
So my question is, is there is a way to run/debug Python code, which is integrated with Java classes, from the Python side such that the imported Java classes can be found?
Thanks.
The text was updated successfully, but these errors were encountered: