You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/user/RunOnJDK.md
+19-12Lines changed: 19 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,17 +21,22 @@ In essence, the example POM file activates JVMCI to install additional JIT compi
21
21
22
22
### GraalVM JavaScript without Maven - JAR Files from GraalVM
23
23
To work without Maven, the JAR files from a GraalVM release can be used as well.
24
-
GraalVM is available as [Enterprise](https://www.oracle.com/downloads/graalvm-downloads.html) and [Community](https://github.com/oracle/graal/releases) Editions. Both editions' files can be used.
24
+
GraalVM is available as [Enterprise](https://www.oracle.com/downloads/graalvm-downloads.html) and [Community](https://github.com/oracle/graal/releases) Editions.
25
+
Both editions' files can be used.
25
26
26
27
The relevant files are:
27
28
*_$GRAALVM/jre/languages/js/graaljs.jar_ - core component of GraalVM JavaScript (always required)
To start a Java application instead and launch GraalVM JavaScript via GraalVM SDK's `Context` (encouraged) or a `ScriptEngine` (supported, but discouraged), _launcher-common.jar_ and _graaljs-launcher.jar_ can be omitted (see example below).
@@ -81,19 +87,20 @@ Assuming this code is called from `MyJavaApp.java` and is properly compiled to a
The Maven example given above is the preferred way to start on JDK 11.
89
-
Working without Maven, you have to provide the JAR files manually to the `java` command.
94
+
## GraalVM JavaScript on JDK 11+
95
+
The Maven example given above is the preferred way to start on JDK 11 (or newer).
96
+
Working without Maven, you can provide the JAR files manually to the `java` command.
90
97
Using `--upgrade-module-path` executes GraalVM JavaScript with the GraalVM compiler, guaranteeing the best performance.
91
-
For that, the [GraalVM compiler](https://github.com/oracle/graal/tree/master/compiler) built with JDK 11 is required.
98
+
The GraalVM JAR files can be downloaded from [org.graalvm at Maven](https://mvnrepository.com/artifact/org.graalvm), and the ICU4J library from [org.ibm.icu at Maven](https://mvnrepository.com/artifact/com.ibm.icu/icu4j).
0 commit comments