TestingDocs.com
Software Testing website
  • Automation
    • Selenium
    • JBehave Framework
  • Tutorials
    • MySQL Tutorials
    • Testlink
    • Maven
    • Git
  • IDEs
    • IntelliJ IDEA
    • Eclipse
  • Flowcharts
    • Flowgorithm
    • Raptor
  • About

Windows 11

Install Java on Windows 11

Overview

In this tutorial, we will learn the steps involved to Install Java on Windows 11 operating system. Windows 11 is the latest operating system from Microsoft Corporation.

Check Install

First things first, check if Java is installed on the Windows 11 machine. Open command prompt and issue the following command:

\> java -version 

If you see a java version in the command output, then Java is already installed on the machine.

 

Java Check on Windows 11

If the command output is:

‘java’ is not recognized as an internal or external command, operable program or batch file.

Proceed further to download and install Java \ JDK.

 

Java Not Installed Windows 11

Download Java Installer

  • Navigate to Oracle official website and Download Java.
  • https://www.oracle.com/java/
  • Access Java SE Downloads page.  Read and Accept License Agreement. Note that Java licensing terms have changed since 2019.
  • In the Download page, click the Windows tab.

We have two options here

  • Download compressed archive JDK package bundle.
  • Download Java/JDK installer. (.exe or .msi installer file)

First option is a no-install ZIP archive bundle package. We can download the package and just extract the archive file contents to a directory. Copy this directory to a suitable location on the computer.

Set environment variables. That’s it.

 

Java Installer Download Windows 11

Second option, we can download the JDK installer. ( either .exe file or .msi installer file). The installer takes care of some install options for you.

jdk-<version>_windows-x64_bin.exe 

 

Java Installer Downloads Windows 11

The file would be downloaded on to the Windows 11 computer, usually to the Downloads folder.

Run Java Installer

Locate the JDK installer and double click on the .exe file to run it.

JDK Download Windows 11

Windows 11 UAC Prompt

We need to have Administrator privileges to install the application. Click on the Yes button in the UAC prompt. Verify the Publisher Information on the UAC prompt dialog. On production systems, we may need to additionally check the integrity of the JDK download.

Windows 11 UAC Prompt TestingDocs

Installation is simple. Run through the install wizard screens by clicking  on the Next > buttons. In most cases, we can accept the defaults.

However, if we want to customize the install destination folder, we can change in the Destination Folder screen. To change the folder click on the Change… button. Choose a folder to install JDK.

Make a note of this directory. We need to set the environment variable JAVA_HOME that point to this install folder.

 

Java Destination folder Windows 11

Set System Variables

Click on the Search icon in the Taskbar.

Search for environment variables in the Search bar. Click the Edit the system environment variables  link.

Edit System Variables Windows 11

Set JAVA_HOME variable

Click on the Environment Variables… button in the System Properties window.

Click on the New… button.

 

Java_Home Windows 11 New Environment

Type JAVA_HOME in Variable name: text box.

The Java destination folder in the Variable value: text box. We can browse the Java folder using the Browse Directory… button.

Once done, click on the OK button.

 

JAVA_HOME New System Variable Windows 11

Append Java bin folder to PATH

Now, in the System variables choose the Path system environment variable and click on Edit… button.

Click on New button and add the following entry

%JAVA_HOME%\bin

Click on OK button and close the System properties window.

Verify Install

Launch a new command prompt and issue the following command to check the JDK installation.

\> java -version

This command should display the Java version to the command window.

That’s it. We have successfully installed Java on Windows 11 machine.

—

Windows 11 Tutorials

https://www.testingdocs.com/windows-11-tutorials/

More Information on Windows 11

https://www.microsoft.com/en-us/windows

Related Posts

Download .NET Core Runtime

Windows 11 /

Download .NET Core Runtime on Windows 11

Norton Antivirus

Windows 11 /

Antivirus Products for Windows 11 PC

Location privacy settings Win11

Windows 11 /

Location Privacy Settings on Windows

Norton 360 Active Protection

Windows 11 /

Windows 11 Virus & Threat Protection

Download Cumulative Updates Windows 11

Windows 11 /

Cumulative Update for Windows 11 Version

‹ Install Google Chrome on Windows 11› Uninstall Java on Windows 11

Recent Posts

  • MS Access Data Types
  • Install RAPTOR Avalonia on CentOS
  • Download RAPTOR Avalonia Edition on Windows
  • npm doctor command
  • Build & Run CLion Project
  • Create New CLion C Project on Windows
  • Configure CLion Toolchains on Windows
  • Launch CLion IDE on Windows
  • Activate CLion IDE
  • CLion IDE for C/C++ Development

Back to Top

Links

  • Contact
  • Privacy Policy
  • Cookie Policy

www.TestingDocs.com

Go to mobile version