Home > Java > JavaBase > body text

How to create a new java file

angryTom
Release: 2019-11-13 13:50:23
Original
9186 people have browsed it

How to create a new java file

How to create a new java file

Java programs can be written using Notepad, but using IDE can save us the time A lot of trouble. Here's how to use Eclipse to create a new java file.

Steps:

(1) After opening the Eclipse program, first start creating a new JAVA project in Eclipse, and select "File——New——Java Project", the system will pop up the property settings of the new project.

(2) On 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. Uncheck "Use default location". The path can be reset.

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

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

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

(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 "

Package" and click "Finish" " Complete the new creation.

(7) After completing the new creation, you can see that the name of the newly created "Package" is added to the "

src" file in the file browser on the left. Right-click and select "New——Class" creates "java class".

(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. It is best to have a certain connection between the name and the function, so that it can be convenient in the future. Management and maintenance.

(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. Just write the program in the appropriate location.

php Chinese website, a large number of free

Java introductory tutorials, welcome to learn online!

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!