Getting started with Java

When we learn Java, the first thing we prepare is to install JDK.

First, we download the JDK (you can choose to download it on the official website and click the open link , or you can download it directly from Baidu search, as shown below)


If you want to download the corresponding version, it is recommended to download the latest version or the like, because the functions are more complete.

After we download and install, the next step is to configure the environment variables, the specific steps are as follows

  • Click on Environment Variables


  • You can see the following window

  • Add the following variables under the user variable path

  • The system variable JAVA_HOME is added as follows (this path refers to the JDK installation path, fill in according to the actual situation)

  • CLASSPATH is added as follows

At this point, all our variables are configured, and the next step is to verify whether the installation was successful

Press Run + R to open the run window, enter CMD to open the CMD window, enter the java command and the Javac command, if it appears as shown in the figure below, the installation is successful.



At this point, our environment configuration has been completed, and then we can learn the Java language.


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324905505&siteId=291194637