Hi, (still need help plz)
I want to use java to read python like this for exemple.
package fr.axsc6_l.DiscordBot;
import org.python.util.PythonInterpreter;
public class DiscordBot {
public static void main(String[] args) {
try(PythonInterpreter pyInterp = new PythonInterpreter()) {
pyInterp.exec(
"import asyncio\n" +
"async def hello_world():\n" +
" await asyncio.sleep(1)\n" +
" print(\"Hello, World!\")\n" +
"loop = asyncio.get_event_loop()\n" +
"loop.run_until_complete(hello_world())\n" +
"loop.close()");
}}}
BUT Jython (that i'm using here) is not compatible with python 3.10 (only 2.7)
Do you know something that does the same but with python 3.10+
I want something that can run without python installed.
and it need to run on a minecraft server
so:
Jython wrong version of python
JEP need python installed
graalvm not used by the server host
(it's extremely specific)
thx for reading and any advice
have a nice day