Home  >  Article  >  How to install Java on Windows 11

How to install Java on Windows 11

王林
王林forward
2023-04-13 21:22:092919browse

Despite the large number of applications that appear every once in a while, Java remains by far one of the most commonly used and important programming languages.

Many applications rely on Java on Windows operating systems, and updating it means improving performance by providing stability and security for Java applications to run safely.

You can also install Java on Linux and macOS platforms. The only difference is the package/file for each platform.

Now, with Windows 11, it’s time to download Java and in today’s article, we will take you through the simple steps to install it on your device.

Which version of Java should I download?

The version of Java you download is entirely up to you. If you are a beginner, your best option is to start with Java SE 8 or Java SE 11.

If you want to explore more functions and advanced features, the EE version is more suitable for you.

Currently, Java 8 is the actively supported version, but if you choose to create and compile your own Java programs, you will need the JDK Software Development Kit.

If you want to download a specific version of Java for various Windows versions, you can find a similar article on How to Download Java to guide you through the process.

How do I check the Java version on my device?

Before installing Java, you must first check if it is currently installed on your device and its version.

Go to check:

  1. Press the Windows R key to launch Command Prompt with administrative privileges.
  2. Type cmd in the dialog box. How to install Java on Windows 11
  3. Select is to approve the user control account. How to install Java on Windows 11
  4. Type java -version to check if java is installed on your computer. How to install Java on Windows 11

If you see the following screen with the message java is not recognized as an internal or external command, runnable program, or batch file, it means there is a problem in your system Without it installed, you can proceed to download Java Windows 11.

How to install Java on Windows 11

If already installed, you will see the following screen and you can proceed to remove and download another Java version.

How to install Java on Windows 11

#Do I need a JRE and JDK to run Java?

JRE (Java Runtime Environment) contains a set of software tools and other components for running Java.

JRE is required when you run Java programs on a device or as a plug-in in a browser.

JDK (Java Development Kit) contains development tools for executing Java. If you install the JDK, you don't need the JRE as it will be included in the package.

How to download Java on Windows 11?

  1. Navigate to your browser and open the Java for Windows download page and click the x64 Installer link. How to install Java on Windows 11
  2. Your file will start downloading, which will be the JDK file (including JRE). Once done, click on it to execute. If prompted for User Access Control (UAC), click Yes.
  3. The Java installation wizard will appear on your screen. Click Next on the first screen. How to install Java on Windows 11
  4. The next screen will ask you to confirm the installation folder. Click Next to continue. How to install Java on Windows 11
  5. After the installation is complete, click to close. How to install Java on Windows 11

#Java is now successfully installed on your device. You can confirm this by running the command prompt detailed above.

Can Java be downloaded for free?

Developers often charge prices for some of their applications, but all Java versions and updates from 8 to 13 are free.

You can download Java for free as long as it is used only for personal or development purposes. Any other use requires a commercial license.

Do I need an Oracle account to download Java?

You do not need to be logged in or have an account with Oracle to download Java for Windows. Oracle will only ask you to log in if you want to access older versions of Java that are now archived.

The Java version is now publicly available. All you have to do is go to the Oracle download page and start downloading. Remember, you still have to agree to the license agreement.

Why is Java not installed on my PC?

Java may not be installed on some PCs for a number of reasons. One of the most common causes is an active firewall or antivirus software.

How to install Java on Windows 11

Windows Firewall protects your device from unauthorized access, malware, and other attacks. Such security features prevent the installation of several programs and applications, including Java. You just need to temporarily disable your firewall and antivirus software to allow it to pass.

After completing the process, remember to turn your firewall and antivirus software back on.

If you had problems downloading or installing Java on Windows 11, we hope this tutorial answered your questions and you can now run your application successfully without glitches.

The above is the detailed content of How to install Java on Windows 11. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:yundongfang.com. If there is any infringement, please contact admin@php.cn delete