Installation on Windows Platforms

Follow these steps to install Oracle GraalVM Enterprise Edition environment on x86 64-bit Windows:

  1. Navigate to the Oracle Technology Network Downloads page. Depending on the workload, select Oracle GraalVM Enterprise Edition based on JDK8 for Windows or Oracle GraalVM Enterprise Edition based on JDK11 for Windows, and accept the Oracle License Agreement.
  2. Unzip the archive to your file system.
  3. Configure JAVA_HOME and PATH environment variables. Setting environment variables via the command line will work the same way for Windows 7, 8 and 10.
    • Add the GraalVM Enterprise bin folder to the PATH environment variable:
        setx /M PATH "C:\Progra~1\Java\graalvm-ee-java11-20.1.0\bin;%PATH%"
    • Set the JAVA_HOME environment variable to resolve to the GraalVM installation directory:
        setx /M JAVA_HOME "C:\Progra~1\Java\graalvm-ee-java11-20.1.0"

      Note that the /M flag, equivalent to -m, requires elevated user privileges.

  4. Restart Command Prompt to reload the environment variables. Then use the following command to check whether the variables were set correctly:
    echo %PATH%
    echo %JAVA_HOME%

    Optionally you can specify GraalVM Enterprise as the JRE or JDK installation in your Java IDE.

Install Additional Components

The GraalVM Enterprise distribution for Windows platforms includes the JDK with the GraalVM compiler enabled, the functional GraalVM Updater utility to install additional components, GraalVM’s JavaScript engine and the developer tools (e.g., Chrome inspector based debugger, Profiler, etc.). Node.js support on the Windows platform is scheduled to be included in the next GraalVM release (20.1). Currently, the GraalVM Enterprise environment on Windows can be extended with:

Proceed to the installation steps.

Prerequisites for Using Native Image on Windows

To make use of Native Image on Windows, meet the further prerequisites. The required Microsoft Visual C++ (MSVC) version depends on the JDK version that GraalVM is based on. For GraalVM Enterprise distribution based on JDK 8, use MSVC 2010 SP1 version. The recommended installation method is using Microsoft Windows SDK 7.1:

  1. Download the SDK file GRMSDKX_EN_DVD.iso for from Microsoft.
  2. Mount the image by opening F:\Setup\SDKSetup.exe directly.

For GraalVM Enterprise distribution based on JDK 11, use MSVC 2017 15.5.5 or later version.

The last prerequisite, common for both GraalVM Enterprise distributions based on JDK 11 and JDK 8, is the proper Developer Command Prompt for your version of Visual Studio. Namely, it is should be the x64 Native Tools Command Prompt. Use Visual Studio 2017 or later.