GraalVM

GraalVM 是一个支持Java等多种编程语言的  高性能编译框架.

 

在mac上,你可以用brew来安装

[email protected] ~ $ brew install --cask graalvm/tap/graalvm-ce-java17

==> Tapping graalvm/tap
Cloning into '/usr/local/Homebrew/Library/Taps/graalvm/homebrew-tap'...
remote: Enumerating objects: 233, done.
remote: Counting objects: 100% (82/82), done.
remote: Compressing objects: 100% (44/44), done.
remote: Total 233 (delta 39), reused 77 (delta 36), pack-reused 151
Receiving objects: 100% (233/233), 70.36 KiB | 3.20 MiB/s, done.
Resolving deltas: 100% (95/95), done.
Tapped 6 casks (20 files, 98.4KB).
==> Caveats
!! GraalVM distributions based on OpenJDK 17 are considered experimental
with several known limitations. Please see
  https://www.graalvm.org/release-notes/known-issues/

Installing GraalVM CE (Java 17) in /Library/Java/JavaVirtualMachines requires root permissions.
You may be asked to enter your password to proceed.

On macOS Catalina, you may get a warning that "the developer cannot be
verified". This check can be disabled in the "Security & Privacy"
preferences pane or by running the following command:
  xattr -r -d com.apple.quarantine "/Library/Java/JavaVirtualMachines/graalvm-ce-java17-21.3.0"

To use GraalVM CE, you may want to change your $JAVA_HOME:
  export JAVA_HOME="/Library/Java/JavaVirtualMachines/graalvm-ce-java17-21.3.0/Contents/Home"

or you may want to add its `bin` directory to your $PATH:
  export PATH="/Library/Java/JavaVirtualMachines/graalvm-ce-java17-21.3.0/Contents/Home/bin:$PATH"

GraalVM CE is licensed under the GPL 2 with Classpath exception:
  https://github.com/oracle/graal/blob/master/LICENSE

==> Downloading https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-21.3.0/graalvm-ce-java17-darwin-amd64-21.3.0.tar.gz
==> Downloading from https://objects.githubusercontent.com/github-production-release-asset-2e65be/222889977/9fed1ad0-cdd1-462f-aad0-83ad488d8
######################################################################## 100.0%
==> Installing Cask graalvm-ce-java17
==> Moving Generic Artifact 'graalvm-ce-java17-21.3.0' to '/Library/Java/JavaVirtualMachines/graalvm-ce-java17-21.3.0'
🍺  graalvm-ce-java17 was successfully installed!
[email protected] ~ $ java --version
[1]    65440 killed     java --version
[email protected] ~ $   xattr -r -d com.apple.quarantine "/Library/Java/JavaVirtualMachines/graalvm-ce-java17-21.3.0"

分类: 默认 标签: 发布于: 2021-11-07 01:09:15, 更新于: 2021-11-07 01:09:15