How does IDEA create a normal Java project, and create a Java file and run it

First, ensure that the IDEA software is correctly installed and the Java development kit JDK is installed.
IDEA's Java project (Project) is equivalent to the concept of Eclipse's workspace (workspace).
1. Create a Java project:
1. Open the IDEA software and click Create New Project on the interface
How does IDEA create a normal Java project, and create a Java file and run it

2. The following interface appears, select Java, then select JDK, and finally click Next to proceed to the next step (mine is jdk1.8)
How does IDEA create a normal Java project, and create a Java file and run it
3. Here is to choose whether to create a Java file when generating the project, and it will be generated after selecting Java Hello World A default Hello world file, click Next to proceed to the next step.
How does IDEA create a normal Java project, and create a Java file and run it
4. Name the project, the default is until, fill in your own name, and finally click
How does IDEA create a normal Java project, and create a Java file and run it
Finish 5. The project is created.
How does IDEA create a normal Java project, and create a Java file and run it
2. Create the Java file:
1. Click src——> new——>package, create a file package, and name the package, similar
How does IDEA create a normal Java project, and create a Java file and run it
to the Eclipse package; name the package
How does IDEA create a normal Java project, and create a Java file and run it
2, create a Java class file under the package, click the package name——>New——>Java Class;
How does IDEA create a normal Java project, and create a Java file and run it
give the class File naming
How does IDEA create a normal Java project, and create a Java file and run it
How does IDEA create a normal Java project, and create a Java file and run it

4. Run the Java file, click Run——>Run...; the
How does IDEA create a normal Java project, and create a Java file and run it
following pop-up box appears, click the file name to run, here is Hello; the
How does IDEA create a normal Java project, and create a Java file and run it
result of the operation
How does IDEA create a normal Java project, and create a Java file and run it

Guess you like

Origin blog.51cto.com/14954398/2542444