diff --git a/docs/user/JavaInteroperability.md b/docs/user/JavaInteroperability.md index 12cba3c4d5..17878f0001 100644 --- a/docs/user/JavaInteroperability.md +++ b/docs/user/JavaInteroperability.md @@ -13,23 +13,7 @@ This documentation shows you how to enable interoperability with Java and possib As of GraalVM for JDK 21, all necessary artifacts can be downloaded directly from Maven Central. All artifacts relevant to embedders can be found in the Maven dependency group [`org.graalvm.polyglot`](https://central.sonatype.com/namespace/org.graalvm.polyglot). - -To embed JavaScript in a Java application, add the following dependencies to the Maven configuration file: -```xml - - org.graalvm.polyglot - polyglot - ${graaljs.version} - - - org.graalvm.polyglot - js - ${graaljs.version} - pom - -``` -The `pom` type is a requirement for a language dependency. -Learn more about the dependency setup in the [Java Interoperability guide](JavaInteroperability.md). +Learn more about the dependency setup in the [Getting Started guide](README.md). ## Polyglot Context diff --git a/docs/user/README.md b/docs/user/README.md index d76106a7ac..ee4a06b092 100644 --- a/docs/user/README.md +++ b/docs/user/README.md @@ -35,7 +35,7 @@ Below is the Maven configuration for a JavaScript embedding: ``` 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). -Use `js-community` if you want to use GraalJS built on GraalVM Community Edition. +Use _artifactId_ `js-community` instead of `js` if you want to use GraalJS built on GraalVM Community Edition. Go step-by-step to create a Maven project, embedding JavaScript in Java, and run it. This example application was tested with GraalVM for JDK 23 and the GraalVM Polyglot API version 24.1.0.