+ 3

Can i run a python code in java

3rd Feb 2020, 2:17 PM
Shivam Singh
Shivam Singh - avatar
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/
3rd Feb 2020, 3:41 PM
Tibor Santa
Tibor Santa - avatar
+ 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.
3rd Feb 2020, 2:20 PM
Khatakh
Khatakh - avatar
+ 2
yeah you can here is the solution https://www.jython.org
3rd Feb 2020, 3:06 PM
Arvand
Arvand - avatar