搭建GraalVM环境

搭建GraalVM环境

  1. 下载软件,然后解压缩。
    https://github.com/graalvm/graalvm-ce-builds/releases
  2. 将GRAALVM_HOME和JAVA_HOME环境变量都设置到graalvm的根目录,同时设置PATH环境变量优先使用$GRAALVM_HOME/bin
  3. 列出当前已经安装的模块
$ gu list
ComponentId              Version             Component name      Origin 
--------------------------------------------------------------------------------
graalvm                  19.3.0              GraalVM Core        
  1. 查看当前可用模块
¥ gu available
Downloading: Component catalog from www.graalvm.org
ComponentId              Version             Component name      Origin 
--------------------------------------------------------------------------------
llvm-toolchain           19.3.0              LLVM.org toolchain  github.com
native-image             19.3.0              Native Image        github.com
python                   19.3.0              Graal.Python        github.com
R                        19.3.0              FastR               github.com
ruby                     19.3.0              TruffleRuby         github.com

5.安装native-image模块

$ gu install 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 19.3.0)

你可能感兴趣的:(Graalvm,Java,性能,虚拟机)