search
HomeJavaJavagetting StartedHow to create java file

How to create java file

Nov 18, 2019 am 11:47 AM
java

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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
Will R.E.P.O. Have Crossplay?
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

Atom editor mac version download

Atom editor mac version download

The most popular open source editor