How to Install Java on Windows 10/11 | setup JAVA_HOME, JDK Installation
How to Install Java on Windows 11/10
Step 1: How to Download Java JDK 23 from Oracle.org
- Open browser and go to the Oracle.org which is the official website for downloading Java SE 23
- Now Look for Java JDK 23 on Java SE Downloads section and choose the Windows x64 Installer.
- Click the Download button.
- After downloading the java x64 Installer file, double-click on it to start the installation.
- Click Next on the welcome screen
- Choose an installation folder or keep the default one (recommended).
- Click Next and then Install.
- Wait for the installation to finish and click Close when done.
- Open the Command Prompt as run as administrator
- Type the command: java -version
- Press Enter, and you will see details about Java JDK 23 if the installation was successful.
- The Type the command: javac -version
- Press Enter, and you will see "Javac 23.0.1" version
- Click on Search Button and search for Edit the System Environment Variables
- Click on Edit the System Environment Variables
- Click on Environment Variables form System Properties Window
- In the System variables section, find the Path variable and click Edit.
- Click on New and add (e.g., C:\Program Files\Java\jdk-23\bin) the Path to edit environment variable and click OK.
- Click OK to save the variable.
- Under User variables, click on New button
- Enter JAVA_HOME as the variable name and the path to your JDK installation as the variable value (e.g., C:\Program Files\Java\jdk-23).
- Click OK to save the variable.
Step 5: How to create and run your first Java Program
Watch the last session in this video
That's it! Java JDK 23 installation and setup has been finished on your Windows 11 system. You can follow the same step on Windows 10 to install and set up Java JDK 23.