Installation on Windows Platforms
Follow these steps to install Oracle GraalVM Enterprise Edition on x86 64-bit Windows:
- 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 Technology Network License Agreement GraalVM Enterprise Edition Including License for Early Adopter Versions.
- Unzip the archive to your file system.
- Configure
JAVA_HOME
andPATH
environment variables. Setting environment variables via the command line will work the same way for Windows 7, 8 and 10.- Point the
PATH
environment variable to the GraalVM Enterprisebin
directory:setx /M PATH "C:\Progra~1\Java\<graalvm>\bin;%PATH%"
- Set the
JAVA_HOME
environment variable to resolve to the GraalVM installation directory:setx /M JAVA_HOME "C:\Progra~1\Java\<graalvm>"
Note that the
/M
flag, equivalent to-m
, requires elevated user privileges.
- Point the
- 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.
Supported Functionalities
The GraalVM Enterprise distribution for Windows platforms includes Oracle JDK with the GraalVM compiler enabled. Currently, the GraalVM environment on Windows can be extended with Native Image, Java on Truffle, LLVM runtime, 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:
- Install the Visual Studio Code Build Tools with the Windows 10 SDK
- Install Visual Studio Code with the Windows 10 SDK
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.