The simple use of eclipse
Steps to use for eclipse:
The first step: Select the working directory. All of the code written later on Eclipse is on the working directory.
Step Two: Create a project on the Project Exploer window, and we will write the code in the future as an engineering unit.
Steps to create a new project:
Project Exploer window Right-click----------> New---------> Java Project
Step Three: Right-click in the SRC directory of the project and create a class on the new class.
Catalog description of the project:
Settings:elcipse automatically generated configuration files. Don't touch it.
Bin: For storing all the class files.
SRC: Used to store all Java source files.
Fourth step: Run the Java file.
Mode one: Java source right-click-------->run as-----------> Java application
Way two: Green Arrow--------->run as-----------> Java application
Mode three: Shortcut key operation: Ctrl + F11
Fifth Step: Import Project:
Package Cn.itcast.eclipse;import java.io.file;/* using Eclipse benefits: 1. CTRL +/Inner completion. 2. You do not need to use the Javac tool to compile, and once you save on Eclipse, Eclipse automatically compiles. 3. Accurate error, automatic repair (CTRL + 1). */public class Demo1 {public static void main (string[] args) {File file = new file ("F:\\a.txt"); System.out.println ("AAA"); System.out.println ("Hello World");}}
Simple and practical Java eclipse