enso/lib/scala
Pavel Marek 9a49a02e3f
--jvm tries to find Java executable system-wide. (#11500)
Fixes `--jvm` option, given to the native image. This was failing on my machine, because when given `--jvm` option, the runner was trying to find the `java` executable from the distribution manager's runtime (on my system located in `~/.local/share/enso/runtime`) and it used the first runtime found. But the first runtime on my system is JDK 17.

The `--jvm` option now tries to:
- Find a JDK from the distribution manager that has the same version as the JDK used for building the engine.
- If there is not an exact version match, it tries to find a runtime from distribution manager that is *newer*.
- If none, fallback to system-wide search
- System-wide search tries to find `java` from `$JAVA_HOME` and from `$PATH`. But this is just a fallback.

# Important Notes
- Added test to Engine CI jobs that pass `--jvm` argument to a native image of engine-runner
- ea3af5ffbc
- `runtime-version-manager` sbt project migrated to a JPMS module
- `engine-runner` now depends on `runtime-version-manager`.
- Removed unnecessary stuff in `runtime-version-manager` dealing with outdated `gu` Graal Updater utility.
- Extracted [GraalVersionManager](1455b025cb/lib/scala/runtime-version-manager/src/main/java/org/enso/runtimeversionmanager/components/GraalVersionManager.java) from [RuntimeVersionManager](d2e8994700/lib/scala/runtime-version-manager/src/main/scala/org/enso/runtimeversionmanager/components/RuntimeVersionManager.scala)
2024-11-18 22:44:54 +00:00
..
akka-native/src/main enso4igv can open engine/language-server & co. projects (#4098) 2023-01-31 08:40:04 +00:00
bench-processor/src engine-runner and language-server are separate JPMS modules (#10823) 2024-09-25 21:33:13 +02:00
cli/src engine-runner and language-server are separate JPMS modules (#10823) 2024-09-25 21:33:13 +02:00
common-polyglot-core-utils/src/main/java engine-runner and language-server are separate JPMS modules (#10823) 2024-09-25 21:33:13 +02:00
connected-lock-manager/src engine-runner and language-server are separate JPMS modules (#10823) 2024-09-25 21:33:13 +02:00
connected-lock-manager-server/src/main engine-runner and language-server are separate JPMS modules (#10823) 2024-09-25 21:33:13 +02:00
distribution-manager/src/main engine-runner and language-server are separate JPMS modules (#10823) 2024-09-25 21:33:13 +02:00
downloader/src engine-runner and language-server are separate JPMS modules (#10823) 2024-09-25 21:33:13 +02:00
edition-updater/src engine-runner and language-server are separate JPMS modules (#10823) 2024-09-25 21:33:13 +02:00
edition-uploader/src/main Prepare for JPMS - rename packages (#10974) 2024-09-06 10:27:59 +02:00
editions/src engine-runner and language-server are separate JPMS modules (#10823) 2024-09-25 21:33:13 +02:00
filewatcher/src engine-runner and language-server are separate JPMS modules (#10823) 2024-09-25 21:33:13 +02:00
interpreter-dsl/src/main/java engine-runner and language-server are separate JPMS modules (#10823) 2024-09-25 21:33:13 +02:00
json-rpc-server engine-runner and language-server are separate JPMS modules (#10823) 2024-09-25 21:33:13 +02:00
json-rpc-server-test Add project/duplicate endpoint (#10407) 2024-07-02 11:39:43 +00:00
library-manager/src engine-runner and language-server are separate JPMS modules (#10823) 2024-09-25 21:33:13 +02:00
library-manager-test/src engine-runner and language-server are separate JPMS modules (#10823) 2024-09-25 21:33:13 +02:00
locking-test-helper/src/main enso4igv can open engine/language-server & co. projects (#4098) 2023-01-31 08:40:04 +00:00
logging-config/src/main/java Fix Logger's name in stdlib (#11519) 2024-11-13 10:20:41 +01:00
logging-service/src/main/java engine-runner and language-server are separate JPMS modules (#10823) 2024-09-25 21:33:13 +02:00
logging-service-logback/src Fix Logger's name in stdlib (#11519) 2024-11-13 10:20:41 +01:00
logging-truffle-connector/src/main Towards simplifying runtime-compiler dependencies (#8894) 2024-04-25 10:03:42 +02:00
logging-utils/src engine-runner and language-server are separate JPMS modules (#10823) 2024-09-25 21:33:13 +02:00
logging-utils-akka/src/main Don't cancel aborted jobs immediately (#11375) 2024-11-05 10:33:02 +01:00
pkg Fix Meta.get_qualified_type_name when run as single file (#11401) 2024-10-31 15:25:45 +00:00
process-utils/src/main engine-runner and language-server are separate JPMS modules (#10823) 2024-09-25 21:33:13 +02:00
profiling-utils/src ydoc-server is a separate module (#10156) 2024-06-07 12:56:42 +02:00
project-manager --jvm tries to find Java executable system-wide. (#11500) 2024-11-18 22:44:54 +00:00
refactoring-utils/src engine-runner and language-server are separate JPMS modules (#10823) 2024-09-25 21:33:13 +02:00
runtime-version-manager/src --jvm tries to find Java executable system-wide. (#11500) 2024-11-18 22:44:54 +00:00
runtime-version-manager-test/src --jvm tries to find Java executable system-wide. (#11500) 2024-11-18 22:44:54 +00:00
searcher/src engine-runner and language-server are separate JPMS modules (#10823) 2024-09-25 21:33:13 +02:00
semver/src --jvm tries to find Java executable system-wide. (#11500) 2024-11-18 22:44:54 +00:00
task-progress-notifications/src/main engine-runner and language-server are separate JPMS modules (#10823) 2024-09-25 21:33:13 +02:00
testkit/src/main Prepare for JPMS - rename packages (#10974) 2024-09-06 10:27:59 +02:00
text-buffer/src engine-runner and language-server are separate JPMS modules (#10823) 2024-09-25 21:33:13 +02:00
version-output/src/main/java --jvm tries to find Java executable system-wide. (#11500) 2024-11-18 22:44:54 +00:00
yaml/src/main engine-runner and language-server are separate JPMS modules (#10823) 2024-09-25 21:33:13 +02:00