I'm trying to run a polyglot native image with java/python. I'm able to create the native image with this command line:
native-image --language:python javapython
But when a run it with ./javapython it throws me this error:
Startup failed, could not read core library from /lib-graalpython/builtins.py. Maybe you need to set python.CoreHome and python.StdLibHome.
Looking for this instruction I found this:
--python.CoreHome=<String>
--python.StdLibHome=<String>
I tried adding it with graalpython, with CoreHome it looks like it works, but with StdLibHome throws me another error:
Original exception was:
Traceback (most recent call last): File "/importlib/_bootstrap.py", line 986, in _find_and_load ModuleNotFoundError: No module named 'site'
Then run again ./javapython but it shows me the same error.
Does anyone know how to configure those paths or why this happened? Thanks