How To Install Java Development Kit (JDK) 18 on Windows 11 x64

Опубликовано: 04 Октябрь 2024
на канале: Ken
612
10

In this tutorial, I will show you how to install Java Development Kit (JDK) 18 on Windows 11 x64.

You should download the JDK installer:

JDK 18 is available from https://www.oracle.com/java/technolog...

The installed directory is as following:

C:\Program Files\Java\jdk-18

Setting the environment variables

CLASSPATH = .

The CLASSPATH variable tells the Java runtime environment searches for classes and other resource files. If you want to include the current directory in the search path, you must include "." in the new settings.

JAVA_HOME="C:\Program Files\Java\jdk-18"

JAVA_HOME tells your OS where there Java installation directory lives.

PATH="%JAVA_HOME%\bin"

The PATH variable specifies where the Java executable directory resides.

Java -version

The output should display a message indicating the Java 18 version of the language and runtime.

The following is a typical value for the PATH variable:

C:\WINDOWS\system32;C:\WINDOWS;"C:\Program Files\Java\jdk-18"

#JDK18 #Java18 #JAVASE18