Open Akirathan opened 1 week ago
Works locally on @JaroslavTulach's machine, but not on mine. Probably --jvm
does not pick the correct Java version.
Works locally on @JaroslavTulach's machine, but not on mine. Probably
--jvm
does not pick the correct Java version.
According to the launcher code the --jvm
option takes a parameter. Please verify you still see the problems when providing path to the right GraalVM.
If the --jvm
option is used without a path, then the code uses distribution manager runtimes to search for a JDK. I cannot say this logic is fully correct. Can we make it better? How? Record JDK version when building native image executable and search/prefer JDK with the same implementation version, then with the same (or newer) specification version, etc.? This is slightly in flux, given the whole NI support isn't yet in production, but having some vision/plan wouldn't hurt.
As a last resort, the system falls back to system java
executable. That's probably not a good idea at all. We should:
java -version
) and check the version to be at least basically compatible - e.g. reject anything lower than JDK21.--jvm with_path
to fix the problemPavel, please add the warning and check on your system what's happening. Is it too old system Java?
Enso built with
engine-runner/buildNativeImage
fails when given--jvm
cmd line opt with:Broken with #10823.