GraalVM 安装

  • Install GraalVM and Native Image

    1. 进入官网https://www.graalvm.org/downloads/下载

    2. 解压文件,并将内容设置为JAVA_HOME

    3. 安装Native Image

      1
      gu install native-image
    4. 检查安装结果

      1
      gu list
  • Install Visual Studio Build Tools or Windows 10 SDK

    1. Download the Visual Studio Build Tools (C development environment) from visualstudio.microsoft.com.

    2. Start the Visual Studio Build Tools installation by clicking on the .exe file, and then press Continue:

    3. Check the Desktop development with C++ box in the main window. Also, on the right side under Installation Details, choose Windows 10 SDK, MSVC V142(对应的系统版本)and click the Install button.

    4. 配置变量到PATH中

      主要为了找到cl.exe这个文件

      1
      C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64
    5. After the installation completes, reboot your system.

    Now that you have the Windows 10 SDK and Visual Studio tooling installed, you can start using GraalVM Native Image.

windows

https://medium.com/graalvm/using-graalvm-and-native-image-on-windows-10-9954dc071311

系统环境配置

问题

  • Default native-compiler executable ‘cl.exe‘ not found via environment variable PATH

需要在PATH中增加以下变量

如果安装的是BuildTools

C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64

如果安装的是Community

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64

如果360提示报错

那么关闭360