+ 3
Can i run a python code in java
4 Respuestas
+ 3
There are some ways but none are simple.
JNI (Java Native Interface) is one option and here is a project that tries to implement it:
https://github.com/ninia/jep/blob/master/README.rst
Another possibility is using the GraalVM that supports integration with several programming languages, python is experimental feature so far.
https://www.graalvm.org/
+ 2
What do you mean?
Generally compilers are language specific. Moreover, python is interpreted so you can't use the Java compiler to compile python code.
Language specific IDE, such as pycharm, is of no use either.
+ 2
yeah you can
here is the solution
https://www.jython.org