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/JavaInteroperability.md
+1-17
Original file line number
Diff line number
Diff line change
@@ -13,23 +13,7 @@ This documentation shows you how to enable interoperability with Java and possib
13
13
14
14
As of GraalVM for JDK 21, all necessary artifacts can be downloaded directly from Maven Central.
15
15
All artifacts relevant to embedders can be found in the Maven dependency group [`org.graalvm.polyglot`](https://central.sonatype.com/namespace/org.graalvm.polyglot).
16
-
17
-
To embed JavaScript in a Java application, add the following dependencies to the Maven configuration file:
18
-
```xml
19
-
<dependency>
20
-
<groupId>org.graalvm.polyglot</groupId>
21
-
<artifactId>polyglot</artifactId>
22
-
<version>${graaljs.version}</version>
23
-
</dependency>
24
-
<dependency>
25
-
<groupId>org.graalvm.polyglot</groupId>
26
-
<artifactId>js</artifactId>
27
-
<version>${graaljs.version}</version>
28
-
<type>pom</type>
29
-
</dependency>
30
-
```
31
-
The `pom` type is a requirement for a language dependency.
32
-
Learn more about the dependency setup in the [Java Interoperability guide](JavaInteroperability.md).
16
+
Learn more about the dependency setup in the [Getting Started guide](README.md).
Copy file name to clipboardExpand all lines: docs/user/README.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ Below is the Maven configuration for a JavaScript embedding:
35
35
</dependency>
36
36
```
37
37
This enables GraalJS which is built on top of Oracle GraalVM and licensed under the [GraalVM Free Terms and Conditions (GFTC)](https://www.oracle.com/downloads/licenses/graal-free-license.html).
38
-
Use `js-community` if you want to use GraalJS built on GraalVM Community Edition.
38
+
Use _artifactId_`js-community` instead of `js` if you want to use GraalJS built on GraalVM Community Edition.
39
39
40
40
Go step-by-step to create a Maven project, embedding JavaScript in Java, and run it.
41
41
This example application was tested with GraalVM for JDK 23 and the GraalVM Polyglot API version 24.1.0.
0 commit comments