GraalVM 安装 native-image

GraalVM About 871 words

在线安装 native-image

可能需要翻墙。

gu.cmd native-image

输出

Downloading: Component catalog from www.graalvm.org
Processing Component: Native Image
Downloading: Component native-image: Native Image from github.com
Installing new component: Native Image (org.graalvm.native-image, version 22.1.0)

离线安装 native-image

22.0.0.2版本为例,下载地址:

https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-22.0.0.2/native-image-installable-svm-java11-windows-amd64-22.0.0.2.jar

jar包解压后目录:

├─bin
├─lib
│  ├─graalvm
│  ├─installer
│  │  └─components
│  └─svm
│      ├─bin
│      └─macros
│          ├─native-image-agent-library
│          ├─native-image-configure-launcher
│          ├─native-image-diagnostics-agent-library
│          └─native-image-launcher
└─META-INF

进入bin目录,执行安装命令:

gu.cmd install -L native-image*

exe 文件位置

native-image.exe文件位于JAVA_HOME下的lib\svm\bin,需要移动到JAVA_HOME\bin

Views: 851 · Posted: 2024-01-16

————        END        ————

Give me a Star, Thanks:)

https://github.com/fendoudebb/LiteNote

扫描下方二维码关注公众号和小程序↓↓↓

扫描下方二维码关注公众号和小程序↓↓↓


Today On History
Browsing Refresh