[Java tool] Intellij Idea creates a simple java project

1. When we install Intellij, we open an interface like this:
write picture description here

2. Then we click File->new project
write picture description here

3. We click java on it and then set the project SDK. This is the path where we install jdk, such as: D:\JAVA\jdk1.7.0_75 After
the above is completed, if we do not want to use any framework, the following options are not needed Checked, click next to appear another dialog box asking if we want to use the template, we will not use this place, because I don't know what the template is. Click next directly
to enter a selection of the name and path of the project.
write picture description here
This is up to you, as long as you are happy, then click finish and we have successfully created a java project
write picture description here
4. Under this project, we can see that there can actually be two subfolders , one is idea, the other is src (in the figure the out folder is successful after running, don't care now)
Then we create a package in the src directory: the name is java_study
and then create a class under the package, such as Figure:
write picture description here
5. The name of the class I created here is carpenterClassMethod and edit the class file:
write picture description here
6. Then we click the right mouse button to run the main() function in the file to get the result:
write picture description here

Up to this point, a simple java applet will do, hope it helps you just starting out with intellij Idea.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326694869&siteId=291194637