How to install java jdk on windows

Java Development Kit (JDK) is one of the most important tools for developers who use it to build, compile, and run Java applications. It does not matter if you are a beginner or an experienced programmer; installing JDK is the first step towards working with Java development. We can download JDK to create and run Java applications on our system. Also, the JDK is used to create Android application source files as well, using the Java or Kotlin programming language. There are multiple benefits of installing a JDK.

Key Features of JDK:

  • Compiler (javac): Converts Java code into bytecode for JVM execution.
  • JRE + JVM: Includes runtime environment to execute Java programs.
  • Rich Libraries: Pre-built classes for I/O, networking, databases, and more.
  • Debugging Tools: JDK provides JDB (Java Debugger) for troubleshooting code.
  • Multi-Platform Support: JDK supports write-once, run anywhere (Windows, Linux, macOS).

The system will execute the code using a set of Libraries and Compilers. JDK, JRE, and JVM should not be confused with one another.

Refer to this article to learn more: Differences between JDK, JRE, and JVM.

Why Install JDK?

  • To develop and run Java applications
  • Compile Java source code (javac)
  • Includes JRE (Java Runtime Environment) and JVM (Java Virtual Machine)
  • Required for Android app development (Java/Kotlin)

This article describes the step-by-step process for installing and configuring the JDK on Windows, Mac, and Linux.

Java JDK Download

The JDK can be installed on the following Platforms:

  1. Microsoft Windows
  2. Linux
  3. macOS

Download JDK (Java Development Kit)

We need to download the JDK first, find the steps below to get started:

Step 1: Visit the Official Website

Go to the Official JDK website to download the file.

jdk

Oracle Official Website

Since JDK is an open-source, so you can get it from OpenJDK in a few clicks.

jdk-alt2

OpenJDK

Step 2: Select the Appropriate Version

As of 2025, the latest stable versions are JDK 23 (SE) and JDK 21 (LTS). Select the compatible version as per your operating system (Windows, Mac or Linux)

jdk-3

JDK Latest Version – Download

Step 3: License and Agreement

Go through all the License and Agreement before downloading (from Oracle website), it will not ask if you’ll download it from OpenJDK website.

Install JDK on Windows

Follow the below steps to install JDK on Windows environment i.e.Windows 7, Windows 8, Windows 8.1, Windows 10, and Windows 11.

Step 1: Run the Java Development Kit (JDK) Installer

Locate the downloaded .exe file (e.g. jdk-23-windows-x64_bin.exe) and make the double click to begin the Installation process. Follow the installation wizard prompts to complete the installation process.

jdk-win1

JDK Installer for Windows

Step 2: Setup the Environment Variables

Once the installation gets completed, you need to configure environment variables to notify the system about the directory in which the JDK files are located.

Proceed to C:\Program Files\Java\jdk-{YOUR_JDK_VERSION}\bin (replace {-} with your JDK version)

Step 2 - Locating JDK File

Program Files

Step 2.1: To set the Environment Variables, you need to search Environment Variables in the Task Bar and click on “Edit the system environment variables”.

Step 2 - Configuring Environment Variables

System Properties

Step 2.2: Under the Advanced section, Click on “Environment Variables”.

Step 2 - Setting Environment Variable

Environment Variables

Step 2.3: Under System variables, select the “Path” variable and click on “Edit”. Click on “New” then paste the Path Address i.e. C:\Program Files\Java\jdk-{YOUR_JDK_VERSION}\bin. Click on “OK”.

Step 2 - Setting Path Environment Variable

Path

Step 2.4: Now, in the Environment Variables dialogue, under System variables, click on “New” and then under Variable name: JAVA_HOME and Variable value: paste address i.e.

C:\Program Files\Java\jdk-{YOUR_JDK_VERSION}. Click on OK => OK => OK.

Step 2 - Setting JAVA_HOME Environment Variable

System Properties

Step 3: Check the Java Version

Open Command Prompt and enter the following commands:

java -version

javac -version

Command Prompt

Install JDK on Linux

Follow the steps below to install the Java software Development Kit on a Linux environment. These instructions are applicable to various Linux distributions such as Ubuntu, Fedora, and CentOS.

Note: We have used Kali Linux distributions here.

Step 1: Install Oracle Java Development Kit (JDK)

To install the downloaded JDK File using terminal, Open terminal and change your directory to downloads by using the command:

$ cd downloads

To list files and packages present in the directory, Type

$ ls

Step 1 - Change Directory to Downloads for JDK

Root Kali

Step 1.1: Now we use Debian Package Manager to configure our downloaded file for installation by typing

$ sudo dpkg -i jdk-{YOUR_JDK_VERSION} (replace {-} with your version)

Enter your password as we have run an elevated prompt, i.e. the sudo or superuser do command, which is a quick way to grant specific users permission to perform specific system commands at the system’s root (most powerful) level.

Step 1 - Extract Package for Installing JDK

Kali Linux

Step 1.2: Now, Type the following commands to proceed with the installation

$ sudo update-alternatives –install /usr/bin/java java /usr/lib/jvm/jdk-{YOUR_JDK_VERSION}/bin/java 1

$ sudo update-alternatives –install /usr/bin/javac javac /usr/lib/jvm/jdk-{YOUR_JDK_VERSION}/bin/javac 1

Step 2: Check the Java Version

Open the terminal and enter the following commands

$ java –version

$ javac –version

Step 2 - Checking Java Version

sudo

Step 3: Configure JAVA_HOME Environment Variable

After the installation is complete, we have to configure environment variables to notify the system about the directory in which jdk files are located. To find the Location of the JDK Files, run this command and copy the File Location.

$ sudo update-alternatives –config java

In order to set the environment variable, you need to edit the environment file using the following command:

$ sudo gedit /etc/environment

Step 3.1: Proceed to add JAVA_HOME=” /usr/lib/jvm/jdk-{YOUR_JDK_VERSION}

Proceed to save and close the file.

Step 3 - Configuring JAVA_HOME

environment

Step 3.2: Now we have to refresh the environment file by using this command:

$ SOURCE /etc/environment

And echo the JAVA_HOME Path

$ echo $JAVA_HOME

Install JDK on macOS

Follow the steps below to install the Java Development Kit (JDK) on macOS. These instructions are compatible with various versions of macOS, including Mojave, Catalina, Big Sur, Monterey, Ventura, Sonoma the latest macOS Sequoia.

Step 1: Install Oracle Java Development Kit (JDK)

Proceed to Install the JDK kit by following the bootstrapped steps:

Step 1 - Installing Oracle Java Development Kit

Installation

Step 2: Configure Environment Variables

Open the terminal and pass the following commands. To find the Location of the JAVA_HOME, run this command:

$ /usr/libexec/java_home -v{YOUR_VERSION}

Step 2 - Configuring Environment Variables

Configure

Step 2.1: We have to set this output as our JAVA_HOME Environment Variable. You can use any command or code editor to edit the file, here we are using VS Code

$ code ~/. bash_profile

Step 2 - Configuring JAVA_HOME

Terminal

Step 2.2: At the very bottom, we have to export the path we obtained earlier i.e. 

$ export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-{YOUR_VERSION}.jdk/Contents/Home

Step 2 - Configured JAVA_HOME Path

bash

Step 2.3: Now we have to refresh the environment file by using this command:

$ source ~/.bash_profile

And echo the JAVA_HOME variable

$ echo $JAVA_HOME

Step 2 - Refreshed JAVA_HOME Environment Variable

Java HOME

Step 3: Verify the Java Version

In the terminal, enter the following commands

$ java -version

$ javac -version

Step 3 - Checking Java Version

javac

Advanatages of JDK

The Advanatages of JDK are listed below:

  • Complete Development Kit: It Includes compiler (javac), JRE, JVM, and debugging tools.
  • Platform Independence: It write once, run anywhere (WORA) using JVM.
  • Rich Libraries & APIs: JDK has built-in support for networking, I/O, databases, and more.
  • Performance Optimization: Just-In-Time (JIT) compiler boosts execution speed.
  • Backward Compatibility: Older Java apps still run on newer JDK versions.

Disadvantages of JDK

The disadvantages of JDK are listed below:

  • Large Memory Usage: JDK consumes more RAM compared to some lightweight languages.
  • Complex Setup: Requires manual environment variable configuration.
  • Slower Startup Time: JVM initialization can delay execution.
  • License Restrictions: Oracle JDK requires a commercial license for business use.

Conclusion

Installing the latest JDK version is a simple process, whether you’re on Windows, macOS or Linux. By following this guide, you can setup JDK and start developing Java applications in just a few steps. You can easily download the latest jdk 23 in your system and start with Java development today.

Для разработки на Java должен быть установлен комплект разработчика приложений – Java Development Kit (сокращенно – JDK). Он нужен для запуска, отладки и исполнения программ. Также понадобится IDE – интегрированная среда разработки, в которой вы будете писать код.

Установка JDK

В комплект JDK входит интерпретатор, компилятор, библиотека Java-классов, отладчик, инструменты архивации и сжатия.

Посмотрим, как установить JDK на разные операционные системы.

Windows

Используйте бесплатную версию JDK, которая называется AdoptOpenJDK. Откройте сайт набора и выберите его состав. Например, для Windows подойдет такой набор:

  • OpenJDK 11 (LTS),

  • Java-машина HotSpot,

  • платформа Windows x64 jdk.

После выбора параметров внизу появится ссылка на скачивание набора. Нажмите на нее, чтобы скачать архив на диск.

Состав JDK

Скачанный архив нужно распаковать. Сделайте это в папке C:\Program Files\Java\. При разархивировании внутри появится папка jdk-11 (номер зависит от версии OpenJDK). Внутри нее размещен каталог bin. Полный путь до него – C:\Program Files\Java\jdk-11.0.13+8\bin. У вас путь может быть другим. Он нужен для того, чтобы настроить переменные окружения.

Путь до версии JDK необходимо знать программам, которые будут использовать приложения из набора – например, среде разработки. Чтобы сохранить его в системе, настройте переменную JAVA_HOME:

  1. Нажмите сочетание клавиш Win+R.

  2. В появившемся окне введите «sysdm.cpl» и нажмите «ОК».

  3. Перейдите на вкладку «Дополнительно».

  4. В нижнем правом углу выберите «Переменные среды». 

Появится список переменных сред. Нажмите «Создать» и заполните параметры:

  • Имя переменной – JAVA_HOME.

  • Значение переменной – C:\Program Files\Java\jdk-11.0.13+8 (укажите путь до папки с JKD на своем компьютере).

Система учитывает регистр. Параметры должны быть такими, как показано выше. 

Добавление переменных пути Java

Найдите в поле «Переменные среды» системную переменную Path. Выделите ее и нажмите «Изменить». Добавьте в PATH путь к каталогу с файлами Java: %JAVA_HOME%\bin. Соблюдайте регистр и не пропускайте символы. После добавления переменных перезагрузите Windows.

После повторного запуска системы проверьте, что JDK установлен. Запустите командную строку и выполните команду:

java -version

Если установка прошла успешно, в ответе будет версия JDK.

Linux (Ubuntu 20.04)

В Ubuntu 20.04 по умолчанию входит пакет Open JDK 11. Перед установкой проверьте ранее установленные версии.

Откройте терминал (Ctrl + Alt +T) и выполните команду: 

sudo apt update

Затем проверьте версию JDK:

java -version

Если JDK уже есть, в ответе будет указана версия.

Для запуска приложений на Java нужна среда выполнения – Java Runtime Environment (JRE). Установите ее командой: 

sudo apt install default-jre

Затем установите JDK командой: 

sudo apt install default-jdk

Где будет находиться JDK, отдельно указывать не надо. Проверьте версию еще раз:  

java -version 

В ответе должна быть указана версия JDK.

macOS

На macOS для установки JDK используется HomeBrew. 

Добавьте в HomeBrew репозиторий с OpenJDK. Откройте терминал (Cmd + N) и выполните команду: 

brew tap AdoptOpenJDK/openjdk

Установите OpenJDK 11:

brew cask install adoptopenjdk11

Проверьте установку:

java -version

В ответе должна быть указана версия JDK.

Комьюнити теперь в Телеграм

Подпишитесь и будьте в курсе последних IT-новостей

Подписаться


Установка среды разработки для Java

Самая популярная среда разработки для Java – IntelliJ IDEA. В ней есть все необходимое для создания проектов: текстовый редактор, компилятор, отладчик и другие инструменты. У Intellij IDEA есть бесплатная и платная версии. На первое время хватает возможностей бесплатной версии – Intellij IDEA Community Edition.

Windows

Скачайте версию Community для Windows с официального сайта JetBrains.

Запустите скачанный исполняемый файл и выберите путь для установки. По умолчанию это папка ProgramFiles/JetBrains.

Настройте параметры установки. Общие настройки:

  1. 64-bit launcher – добавление на рабочий стол ярлыка Intellij IDEA.

  2. Add «Open Folder as Project» – открытие папки с исходниками в редакторе через контекстное меню.

  3. .java – файлы с таким расширением по умолчанию будут открываться через Intellij IDEA.

Выберите папку для ярлыков (по умолчанию) JetBrains. Затем нажмите Install и Finish. Установка InteLLiJ IDEA завершена.

Linux (Ubuntu 20.04)

Установка среды разработки IntelliJ IDEA на Linux проходит даже проще, чем на Windows.

  1. Откройте «Центр приложений» и введите в поисковой строке слово «Intellij».
  2. Выберите IDEA Community и нажмите Install.
  3. После завершения установки откройте список программ.
  4. Запустите IDEA, примите условия соглашения. 

На экране появится стартовое окно. Здесь можно создать или открыть проект.

macOS

На macOS InteLLiJ IDEA установка тоже очень простая.

  1. Скачайте версию IntelliJ IDEA для macOS с сайта JetBrains. Выберите версию Community.
  2. Откройте файл с расширением *.dmg. Скопируйте его в «Программы».
  3. Система выдаст предупреждение. Нажмите «Открыть».
  4. Примите пользовательское соглашение и нажмите «Продолжить».

Дождитесь завершения установки и запустите IDEA.

Запуск проектов

Среда разработки настроена, все приложения установлены. Осталось разобраться, как запустить JDK c помощью IDEA.

При первом запуске программа просит принять лицензионное соглашение. Затем появляется окно выбора темы – светлой или темной. 

Следующий шаг – установка плагинов. Если пока не знаете, что понадобится для разработки, то ничего не меняйте. Если точно знаете, что, например, не будете писать приложения для Android, то удалите плагин Android. 

Плагины IntelliJ IDEA

Не беспокойтесь о составе плагинов. Если что-то забудете или установите лишнее, в любой момент можно будет поправить список в настройках IDEA.

После добавления плагинов появится стартовый экран. Здесь можно создать новый проект, открыть существующий или скачать репозиторий из системы контроля версий.

Создайте новый проект и добавьте в него Java Class – пусть он называется first. Напишите первую программу:

public class first{
     public static void main(String args[])
     {
         System.out.println("Hello, world!");
     }
}

Чтобы запустить первую программу, нажмите Run. Внизу откроется консоль, в которой должно отобразиться приветствие – Hello, world!

Вы только что установили JDK, настроили среду разработки и выполнили первую программу.

The Java Development Kit (JDK) is a software development environment that works across different platforms. It provides tools and libraries required for creating Java programs. This article will give detailed instructions on installing the JDK on Windows and macOS operating systems.

Table of contents

  • Install JDK on Windows
    • Download and Install JDK
    • Configure environment variables
    • Check the Java version
  • Install JDK on MacOS
    • Download and install JDK
    • Configure environment variables
    • Additional configuration
  • Conclusion

Install JDK on Windows

Download and Install JDK

 Go to the official Oracle website to download the Java Development Kit (JDK).

Choose the appropriate Java version and select the Windows tab based on your system preference. Then, click on the available URL options (i.e., .zip, .exe, or .msi file) on the bottom side of the page to start the download.

Notice that we have not chosen the latest version of Java in the above example based on personal preference. However, you can select newer JDK versions to explore new features.

After completing the download, follow the provided instructions to install the JDK.

Configure environment variables

The next thing is to set up the environmental variables to achieve proper system configuration and dependency for the other applications.

Open System Properties by pressing Win + R, typing sysdm.cpl, and click OK.

Click the Advanced system settings tab and click the Environment Variables button.

Under System variables, click on the New button to create a new variable named JAVA_HOME. Set its value to your Java JDK installation path, such as C:\Program Files\Java\jdk-17.

Then, select the Path variable option in the System variables and click Edit.

Add a new entry by clicking the New button, and in the new row, put the path to the Java folder followed by \bin. Then, click the OK buttons to save the changes.

Check the Java version

After setting the variables, open a new command prompt and type java -version to verify the installation. The prompt should show the installed version number.

Install JDK on macOS

Download and install JDK

Go to the official Oracle website to download the Java Development Kit (JDK).

Select the macOS tab and the Java version you want to download. We’ll download the latest ARMx64 DMG Installer for our Mac for JDK 17.

Notice that we have not chosen the latest version of Java in the above example based on personal preference. However, you can select newer JDK versions to explore new features.

After the download, install the JDK by following the guided installation steps.

Configure environment variables

Now, we need to configure some Java environment variables. Start by opening a terminal and passing the following command to find out the version of Java that is installed and its location in our computer:

You can open a terminal by pressing Command + Space to open Spotlight Search, then type “Terminal” and press Enter. This will launch the Terminal application.

/usr/libexec/java_home -V
Java version | automateNow

The next step is to set JAVA_HOME in the .zshrc file. To check if you already have that file, run this command from your home directory in the Terminal:

ls -al
zshrc file on macOS | Set Java Home | automateNow

Run the following command in the Terminal if you don’t see a .zshrc file:

touch .zshrcCode language: CSS (css)

Now, let’s open the file:

nano .zshrcCode language: CSS (css)

And add these lines to it and make sure that you replace <your_java_version> with the version of Java that you have installed:

export JAVA_HOME=$(/usr/libexec/java_home -v <your_java_version>)
export PATH=$JAVA_HOME/bin:$PATHCode language: JavaScript (javascript)
Edit .zshrc file | Set Java home on macOS | automateNow

After that, we have to save the changes in the nano editor. Press control + X, then press Y to confirm you want to save and finally, press Enter to confirm the changes.

Now, run this command:

source .zshrcCode language: CSS (css)

This command will reload your shell configuration and apply the changes immediately without restarting your terminal.

You can now verify the JAVA_HOME variable and Java version by running the following commands one after the other:

echo $JAVA_HOME
java -versionCode language: PHP (php)

Additional configuration

Before the JDK download and installation, you should check if you already have an old version of Java, as it could interfere with your new JDK installation.

To check for existing Java installations, use this command in your terminal:

/usr/libexec/java_home -V

This command will display all the Java versions of JDK or JRE installed on your system.

You should remove any existing JDK or JRE Java version unless you intend to use multiple Java versions.

For manually installed versions, delete the corresponding folders in /Library/Java/JavaVirtualMachines/.
For versions installed through the macOS installer, use the official Java uninstaller tool from Oracle.

Removing the older or incompatible Java installations assures that your system uses the newly installed JDK version without interference. This prevents potential conflicts that could hamper the proper functioning of your Java development environment.

Final thoughts on how to install Java JDK on Windows and macOS

The Java JDK is used by Java developers to develop Java applications. Its installation on Windows and macOS is straightforward. You download the appropriate installer from the Oracle JDK website, run it, and configure system environment variables and PATH. Java JDK is necessary for developers and testers because it provides essential tools, compilers, and runtime environments for efficient Java programming.

Following these steps, you can quickly set up your Java development environment, including class libraries and JVM. Remember to verify your installation by checking the Java version in the command prompt or terminal. With Java JDK properly installed, you’ll be ready to start your Java programming for various projects, from simple applications to complex Maven builds, taking advantage of its strong features and cross-platform compatibility. Happy testing!

Don’t miss these

Follow our blog

Be the first to know when we publish new content.

  • Author
  • Recent Posts

Ashutosh has 4 years of experience in software testing. He has performed different types of testing such as load, API, and database as well as knows a wide range of testing tools. He has a bachelor’s degree in Electronics and Telecommunication Engineering.

Throughout his entire life, he always wanted to help others and now he’s helping a large number of groups by sharing knowledge through his writings.

How to Install Java JDK 23 on Windows 11 (with JAVA_HOME)

Java JDK 23 is the latest version available and is essential if you’re working on Java applications or learning Java programming. In this guide, you’ll learn how to download, install, and set up Java JDK 23 on Windows 11. We also configure the JAVA_HOME environment variable. Let’s dive right in!

We recommend watching below the step-by-step video to install and setup Java JDK 23 on Windows 11:

Why Do You Need Java JDK 23?

Java JDK (Java Development Kit) contains all the tools to compile and run Java programs. The latest version, JDK 23, comes with new features and performance improvements, making it an excellent choice for developers.

How to Install Java JDK 23

Step 1: Download Java JDK 23

  1. Open your web browser and go to the Oracle official website.
  2. Navigate to the Java SE Downloads section.
  3. Look for Java JDK 23 and choose the Windows x64 Installer.
  4. Click the Download button and accept the license agreement if prompted.

How to Install Java JDK 23 on Windows 11 (with JAVA_HOME)

Step 2: Install Java JDK 23

  1. After downloading the installer, double-click on it to start the installation.
  2. Follow these simple steps:
    • Click Next on the welcome screen.
    • Choose an installation folder or keep the default one (recommended).
    • Click Next and then Install.
  3. Wait for the installation to finish and click Close when done.

Step 3: Verify the Installation

  1. Open the Command Prompt (type cmd in the Start menu).
  2. Type the command:
    java -version
    
  3. Press Enter, and you should see details about Java JDK 23 if the installation was successful.

How to Set Up JAVA_HOME

Setting up the JAVA_HOME environment variable is important for many Java-based applications and tools.

Step 1: Locate the JDK Installation Path

  1. Go to the folder where Java JDK 23 is installed.
    (Default path: C:\Program Files\Java\jdk-23)
  2. Copy the full path to this folder.

Step 2: Set the JAVA_HOME Variable

  1. Open the Start menu and search for Environment Variables.
  2. Click on Edit the system environment variables.
  3. In the System Properties window, click on the Environment Variables button.
  4. Under System Variables, click New.
  5. In the Variable Name field, type:
    JAVA_HOME
    
  6. In the Variable Value field, paste the JDK path you copied earlier.
  7. Click OK to save.

Step 3: Update the Path Variable

  1. In the same Environment Variables window, find the Path variable under System Variables.
  2. Select it and click Edit.
  3. Click New and add:
    %JAVA_HOME%\bin
    
  4. Click OK to save your changes.

Step 4: Test the Configuration

  1. Open the Command Prompt again.
  2. Type the command:
    echo %JAVA_HOME%
    
  3. Press Enter, and the JDK installation path should be displayed.
  4. Finally, type javac to check if the Java compiler is working.

You’re all set! Java JDK 23 is now installed on your Windows 11 system, and the JAVA_HOME environment variable is configured. You can start building Java applications or run tools that require Java.

Details
Written by  
Last Updated on 21 October 2024   |   Print  Email

JDK 23 is a regular update of the Java SE platform, released on September 17th 2024. Follow the steps below to set up the Java Development Kit (JDK) on your Windows operating system with Oracle JDK 23, a commercial distribution provided by Oracle corporation.

After completing this guide, you will have the Java runtime environment, as well as core Java development tools, installed — essentials to start your Java programming journey.

1. Download Oracle JDK 23 Installer for Windows

It’s strongly recommended to use an official installer or JDK 23. Visit the official Java downloads page, where you’ll find Oracle JDK 23 available as Zip file (x64 Compressed Archive), x64 Installer (EXE) and x64 MSI Installer:

Oracle JDK 23 download for Windows

For convenience (ease of setup), you can choose to download either the EXE or MSI installer. In this guide, I will choose the EXE installer, so click on the download link (1) next to x64 Installer. Save the file (jdk-23_windows-x64_bin.exe) to the Downloads folder in your user home directory.

2. Verify the Installer File

This step is option but recommended to ensure that the downloaded file is original and has not been tampered with. Open a new Command Prompt window and change the current directory to the Downloads folder using the following command:

cd Downloads

Then type the following command:

certutil -hashfile jdk-23_windows-x64_bin.exe sha256

This prints the SHA256 checksum value of the file. Go back to the Java downloads page and click on the sha256 link (2) next to the download link to view the SHA256 checksum of the original file. If both values match, it means the downloaded file is intact, and you can safely run it.

Double-click the .exe file to run the Windows installer for Oracle JDK 23. If you see the warning “the app you’re trying to install isn’t a Microsoft-verified app”, click Install anyway. This will launch the Setup program for Java(TM) SE Development Kit 23.0.1 (64-bit) as shown below:

Oracle JDK 23 Setup program for windows

If you want proceed the installation with default settings, click the Next button twice. The installation will be completed in just a few seconds, and JDK 23 will be installed in the C:\Program Files\Java\jdk-23 directory by default. There is no need to configure system environment variables.

4. Verify the Oracle JDK 23 Installation on Windows

Exit the Setup program. Then, open a new Command Prompt window, type in java -version to check version of the Java Virtual Machine (JVM). If you see a result similar to the following screenshot, it means JDK 23 has been installed successfully on your Windows computer:

check java version in command prompt

You can also type javac -version to check version of the Java compiler, and it will display “javac 23.0.1”.

Congratulations! You’ve done the first and foremost step to begin creating, developing, building and running Java applications on the Windows operating system using the Oracle JDK distribution for Java 23.

To see the setup of Oracle JDK 23 in action, watch the following video:

Related Articles:

  • How to set JAVA_HOME in macOS and Linux permanently
  • How to set JAVA_HOME environment variable on Windows 10
  • What are JVM, JRE and JDK
  • How to write, compile and run a hello world Java program for beginners
  • Java Core Language Tutorials

About the Author:

Nam Ha Minh is certified Java programmer (SCJP and SCWCD). He began programming with Java back in the days of Java 1.4 and has been passionate about it ever since. You can connect with him on Facebook and watch his Java videos on YouTube.

Add comment

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Как удалить дополнительные языки в windows 10
  • Проверка hdd средствами windows 10
  • Windows предлагает извлечь системный диск
  • Divine divinity не запускается windows 10
  • File host c windows system32 drivers etc