Java learning record (1) java download development and environment configuration and Hellojava program

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 **
Write a picture description here

2. Click on the environment variable
Write a picture description here
3. New JAVA _HONE, the variable value is the address where the jdk is located
Write a picture description here
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)
Write a picture description here

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
Write a picture description here
Write a picture description here

3. Development tool installation

  1. The download address of elipse is as follows
    https://www.eclipse.org/downloads/
  2. 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
Write a picture description here

2. Click src to create a new java class
Write a picture description here

3. Enter the code

public class hellojava {

	public static void main(String[] args) {
		// TODO 自动生成的方法存根
		System.out.println("Hellojava");
	}

}

4. Get the result
Write a picture description here

Published 12 original articles · Liked3 · Visits 407

Guess you like

Origin blog.csdn.net/Hobo_hua/article/details/82722280