Installation on Windows Platforms

You can install Oracle GraalVM Enterprise Edition on the Windows operating system from an archive file (zip). Follow these steps:

  1. Navigate to Oracle GraalVM Downloads.
  2. Select the preferable GraalVM Enterprise version in the Release Version dropdown, 11 or 17 for the Java version, and Windows for the operating system.
  3. Click on the GraalVM Enterprise JDK download link. Before you download a file, you must accept the Oracle License Agreement in the popup window.
  4. When the download button becomes active, press it to start downloading graalvm-ee-java-windows-amd64-.zip.
  5. Change the directory to the location where you want to install GraalVM Enterprise, then move the .zip archive to it.
  6. Unzip the archive to your file system.
  7. There can be multiple JDKs installed on the machine. The next step is to configure the runtime environment. Setting environment variables via the command line work the same way for Windows 8 and 10.
    • Point the PATH environment variable to the GraalVM Enterprise bin directory:
        setx /M PATH "C:\Progra~1\Java\<graalvm>\bin;%PATH%"
      
    • Set the JAVA_HOME environment variable to resolve to the GraalVM Enterprise installation directory:
        setx /M JAVA_HOME "C:\Progra~1\Java\<graalvm>"
      

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

  8. 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%
    

Alternatively, you can set up environment variables through a Windows GUI:

  1. Go to Windows Start Menu - Settings - … - Advanced.
  2. Click Environment Variables. In the section System Variables find the JAVA_HOME variable and select it.
  3. Click Edit.
  4. Click New.
  5. Click Browse and reach the folder to add. Confirm by clicking OK.
  6. Restart Command Prompt to reload the environment variables.

Repeat the same for the PATH environment variable.

Supported Functionalities

The GraalVM Enterprise distribution for Windows platforms includes Oracle JDK with the GraalVM compiler enabled, the GraalVM Updater tool to install additional functionalities and the developer tools (e.g., Chrome inspector based debugger, Profiler, etc.). Currently, the GraalVM environment on Windows can be extended with Native Image, Java on Truffle, LLVM runtime, WebAssembly, JavaScript and Node.js support.

Prerequisites for Using Native Image on Windows

On Windows, Native Image requires Visual Studio Code and Microsoft Visual C++(MSVC). You can use Visual Studio 2017 version 15.9 or later. There are two installation options:

The last prerequisite is the proper Developer Command Prompt for your version of Visual Studio. On Windows the native-image tool only works when it is executed from the x64 Native Tools Command Prompt.

Step by step instructions on installing Visual Studio Build Tools and Windows 10 SDK, and starting using Native Image can be found here.