1. Download JDK
1. Download address
https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html (this link is jdk8.0)
select the corresponding version to download and install (this article uses windows 64-bit For example)
2. Try to put the installation directory under the same blank directory
3. Until the installation is successful
2. jdk environment configuration
You can refer to the Baidu experience as the following link:
https://jingyan.baidu.com/article/fd8044fa2c22f15031137a2a.html
** 1. Right click on the computer and click Properties to enter the advanced system settings **
2. Click on the environment variable
3. New JAVA _HONE, the variable value is the address where the jdk is located
4. Add the PATH variable, the value of the variable is as shown below (you can also directly add the address of the bin file under the jdk file and the jre file)
5. Use the command prompt to check the environment configuration (win + R can be quickly opened by entering cmd), enter Java and javac, and the following shows that the environment configuration is successful
3. Development tool installation
- The download address of elipse is as follows
https://www.eclipse.org/downloads/ - The download address of intellij idea is as follows
https://www.jetbrains.com/idea/download/#section=windows
registration code to obtain the address as follows
http://idea.lanyus.com/
Four. The first program Hellojava
1. Create a new Java project
2. Click src to create a new java class
3. Enter the code
public class hellojava {
public static void main(String[] args) {
// TODO 自动生成的方法存根
System.out.println("Hellojava");
}
}
4. Get the result