Skip to content

Commit

Permalink
📝 Update GRAALVM.md [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
ujibang committed Sep 30, 2024
1 parent be858bb commit 5e0ca40
Showing 1 changed file with 3 additions and 21 deletions.
24 changes: 3 additions & 21 deletions GRAALVM.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@

## prerequisites

> GraalVM required version: >= 17.0.9-graal (23.0.2) (https://www.graalvm.org/downloads/)
Also install `native-image`
> GraalVM required version: >= 21.0.2-graal
```bash
$ gu install native-image
$ sdk install java 21.0.2-graalce
```

## build native image
Expand Down Expand Up @@ -113,20 +111,4 @@ Run
$ java -cp core/target/restheart.jar org.restheart.graal.GenerateGraalvmReflectConfig
```

And add output to `commons/src/main/resources/META-INF/native-image/org.restheart/restheart-commons/reflect-config.json`

### Get GraalVM sdk version from JDK version

```bash
$ sdk install java 17.0.9-graal <====
...
$ gu install js
Downloading: Artifacts catalog from gds.oracle.com
Skipping ULN EE channels, no username provided.
Downloading: Component catalog from www.graalvm.org
Processing Component: Graal.js
Downloading: Component js: Graal.js from gds.oracle.com
Installing new component: Graal.js (org.graalvm.js, version 23.0.2) <====
```

So GraalVM JDK v`17.0.9` is about GraalVM v`23.0.2`
And add output to `commons/src/main/resources/META-INF/native-image/org.restheart/restheart-commons/reflect-config.json`

0 comments on commit 5e0ca40

Please sign in to comment.