How to download and install java in Win11?

1. Problem description

When I reproduced the paper code, I encountered such a problem:

insert image description here
I didn't download java, so how can I fix it?

The purpose of downloading Java is to be able to run applications written in the Java language on the computer. Java is a widely used programming language that can be used to develop various types of applications including desktop applications, web applications, mobile applications, enterprise applications, etc.

Java applications can run on different operating systems, such as Windows, Linux, macOS, etc., because the Java Virtual Machine (JVM) converts Java code into binary code that can run on various operating systems. Therefore, downloading and installing Java allows you to run various applications written in the Java language on your computer.

2. Download java

We can download and install Java on Windows 11 by following these steps:

  1. Open your browser and go to the official Java website:
https://www.java.com/zh-CN/ 

insert image description here

  1. Click the "Free Java Download" button on the page.
  2. On the "Download Java" page, select the OS (Windows), bitness (64-bit or 32-bit) and language version for your computer and click the "Download" button.
  3. Next, you need to agree to the license agreement. Select "Agree and start free download" and click the "Download" button.
  4. Save the download file and wait for the download to complete.

insert image description here
6. Double-click the downloaded file and follow the prompts to install it. You can customize the installation path during the installation process.

insert image description here
7. After the installation is complete, open a command prompt and enter the "java -version" command to confirm that Java is installed correctly and to view the current version.

insert image description here

Guess you like

Origin blog.csdn.net/wzk4869/article/details/130463489