Java requirements
Before you start, follow these steps to ensure that your Java environment is suitable:
-
Verify that your computer has a supported Java version installed:
Vendor | Versions | ||
---|---|---|---|
OpenJDK, including OpenJDK-based distributions:
|
11, 17* |
||
Oracle Java |
11, 17* |
* Version 17.0.3 or higher.
-
Read the pre-installation requirements.
-
Set the
JAVA_HOME
environment variable:Set JAVA_HOME on Windows
-
Locate the JRE installation directory (typically,
C:\Program Files\Java\
). -
Click Start > Control Panel > System and Security > System.
-
Click Advanced System Settings.
-
Click Environment Variables.
-
Under System Variables, click New.
-
Enter the Variable name (
JAVA_HOME
) and set the Variable value to the JRE installation directory; for exampleC:\Program Files\Java\jre8
. -
Click OK.
Set JAVA_HOME on Linux
-
Open the user shell configuration file found in your home directory.
-
Add the
JAVA_HOME
variable to the user shell configuration file, setting the value to/usr
. In Bash, this would appear asexport JAVA_HOME="/usr"
.
-