Idea how to create a normal Java project

1. First start idea, and then click Create New Project
as shown in the figure:
Insert picture description here
2. Select Java in the upper left corner, and the JDK version will be displayed behind the Project SDK. If you install a higher version of JDK, it is recommended to change to version 1.8, and finally click Next
Insert picture description here
3. Click Next directly on the new page.
Insert picture description here
4. Fill in the project name in the Project name, for example: JSD2102
Project location shows the local storage path (workspace) of the current project
and then click Finish
Insert picture description here
5. Click Finish and it will be A new project is created. After the project is expanded, src will be displayed. Right-click the crc and select new-Package
Insert picture description here
. 6. At this time, a box will pop up. Give the Java package a name in the box, for example: demo, and then press Enter Insert picture description here
7 .At this time, there will be an additional Java package called demo under src, then continue to right-click the demo, select new-Java Class, Insert picture description here
8. In the pop-up box, give a class name, for example: HelloWorld, and then press Enter
Insert picture description here
9. At this time, A Java project is created
Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_48233516/article/details/114207505