Windows 10 system, JDK installation and environment variable configuration

insert image description here

introduction

With the increasing development of the Internet, more and more small partners have joined the ranks of programmers, and many small partners are planning to learn programming, learning Java

So for novices, the first thing is to download and install the Java Development Kit, that is, JDK. Today we will talk about how to operate it in detail

JDK version description

In the learning environment, we usually use a newer version of JDK, because we have to learn some new features

In the development environment, we usually use the old version of JDK, because the old version is stable and widely used

ORACLE official website through train

insert image description here


Check the official website, the current JDK has been updated to 20. Different operating platforms can choose different download entrances.

insert image description here

If you need to download the long-term support version (old version), there is no problem.

All historical versions

insert image description here

Configure environment variables

After everyone installs the JDK, start to enter the link of configuring environment variables.

insert image description here


insert image description here


Under normal circumstances, after the above process is completed, enter java -version through cmd to view the current version.

insert image description here

Extras: special cases

Some people, after operating the above process, find that it still doesn't work, and the process is the same, so how can it fail?
We can add the following parameters in the user variables.

insert image description here

If this blog is helpful to the iron people, or can resonate with you, please don't mean yourlikeandfocus onYo, thanks! ! !
If you have any questions or different opinions, please leave a message in the comment area >_<…

Guess you like

Origin blog.csdn.net/chen_md/article/details/130081585