Home >Java >Javagetting Started >How to create java file

How to create java file

藏色散人
藏色散人Original
2019-11-18 11:47:1313952browse

How to create java file

How to create a java file?

(1) After opening the Eclipse program, first start the JAVA project in Eclipse To create a new project, select "File - New - Java Project" in the option bar above, and the system will pop up the property settings of the new project.

How to create java file

(2) In the setting page of Java Project, mainly set the project name setting and path setting of the project. The path of "Java Project" is usually the default path. Cancel Check "Use default location" to reset the path.

How to create java file

(3) After completing the setting of the name and path of "Java Project", click "Finish" to complete the settings and create a new project.

How to create java file

# (4) The system will enter the project editing page, and program writing cannot be performed at this time.

How to create java file

(5) "Java Project" is an outer frame of the java project. Next, you need to create a new project package inside java. Select "File——" in the upper option bar. New——Package"Create a new java project package.

How to create java file

(6) After confirming the new "Package", the system will pop up the property settings of the new project. You only need to set the name of the "Package" and click "Finish" "Complete the new creation.

How to create java file

(7) After completing the new creation, you can see that in the "src" file in the file browser on the left, there is an additional name of the newly created "Package", right-click Click and select "New - Class" to create "java class (class)".

How to create java file

(8) The same as the steps for creating a new project before. The system will pop up the property settings of the project. You only need to set the name. The best name and function are A certain amount of contact will facilitate future management and maintenance.

How to create java file

(9) After completing the creation of "Class", the main page of the system will display the programming page, and then you can start programming the java project. In the appropriate Just write the program in the location.

How to create java file

The above is the detailed content of How to create java file. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn