JDK installation and environment configuration — the first step of Android Development

JDK, namely java development kit, is used to compile Java programs. In the process of contacting JDK, JRE also learned that JRE, that is, Java runtime environment, is the running environment of Java. JRE will be included in JDK.

Search JDK and download JDK. You can see the latest version 12.0.2

① execute the installation file for installation. After success

② click "next steps" to see the official installation guide and select windows installation

③ location of path environment configuration

④ configure path variable

Find the path of JDK installation (C: \ program files \ Java \ jdk-12.0.2 \ bin)

Add the path of JDK installation path bin file to path

⑤ verify whether the installation is successful

When we knock a command in the command window, there is actually an. EXE file in our computer. Where to find this file is to find it one path from front to back through the path we configured. This is why multiple versions of JDK display the JDK version of the previous version.

Students who have installed JDK must remember that installing JDK is not so simple, and Java_ Home is the environment variable.

This is a blog from a big man. So Java_ It seems that home should also be configured. (there is no configuration here. It depends on the later needs. The Android project can be compiled and run without configuration)

The purpose of classpath setting is to tell the Java execution environment in which directories you can find the classes or packages required by the Java program you want to execute----- This paragraph comes from Baidu Encyclopedia.

We often improve another file in one file. How to find this file is to set multiple search paths through the classpath variable, where (.) means all, which is placed last.

In fact, JDK 5.0 will find Java programs in the current working directory (the above. Setting) and the Lib directory of JDK (assuming C: \ program files \ Java \ jdk1.5.0_06 \ LIB). Therefore, if the Java program is in these two directories, you can find it without setting the classpath variable. In the future, if the Java program is not placed in these two directories, you can set the classpath as described above--------- This paragraph comes from Baidu Encyclopedia

Configure it yourself according to the situation. It is not configured here.

I hope to point out some problems. I will correct them in time and learn from each other.

I also learned about the JDK version. Most people are still in jdk8. Some data show that jdk8 is no longer maintained. It is recommended to use the new version of JDK.

I chose the new version of JDK. What about you? Which version is used

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>