Java automated testing rookie article two: Java integrated environment construction

The learning materials come from the industry's predecessor: Davieyang.DY, for personal learning only, intrusion and deletion.

Download the official IDEA Community Community Community Edition can be.

Start IDEA, create a new project,
Insert picture description here
select the project type and SDK

Select Java==》JDK11, which is the version you just installed,
Insert picture description here
template creation page, no need to select first

Select the template creation interface as follows, don’t make a choice, just NEXT:
Insert picture description here
name the project and select the project path. The
Insert picture description here
Java project is created successfully

This is one of the most common Java projects, which can be used for usual code training. src is where we write Java code:
Insert picture description here
create a new package file under src and name it demo

Insert picture description here
Create a new Java Class file named DemoTest
Insert picture description here
in the demo folder and write the code in the newly created DemoTest file:

public class DemoTest{
    
    
    public static void main(String[] args){
    
    
        System.out.println("Configuration Training");
    }
}

Insert picture description here
Next we run the code

You can select the file and right-click and choose Run:
Insert picture description here
You can also use the Ctrl+Shift+F10 shortcut key to run the file.

Configure execution variables

When you click Run, the following window will pop up, select Edit:
Insert picture description here

Create a new Run/Debug configuration

Insert picture description here
Click the "+" sign in the upper left corner to add the Application item:
Insert picture description here
then configure the Java program entry

Configure the location of the main function
Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here
At this point, the Java integrated development environment is set up, let's right-click to create a GTA6 project, haha ​​(if you can't play GTA6, you are responsible for buying GTA5 in 2021).

Guess you like

Origin blog.csdn.net/weixin_52385863/article/details/114241972