MyEclipse is an open source, java-based, extensible development platform. For its part, it is just a framework and a set of services for building the development environment through plug-in components. MyEclipse comes with a standard set of plug-ins, including Java development tools (Java Development kit,jdk), which is an essential Java development environment for Java development.
1
Start Eclipse, the first time you start the software, you will be prompted to select the workspace (WorkSpace), you can create a new folder on the hard disk as a workspace, this folder will save all the source code you write. 2
How to create a new, simple Java project. 3
The following figure is to fill in the project name and source folder, the general situation is the default SRC as the root folder. 4
Create a new package in the project.
It is important to note that the package name and project name are generally lowercase, and the Java class name begins with a capital letter. 5
Create a new Java class in the package, a package can have more than one Java class, Java class is the area where we write code. 6
One of the simplest and most standard Java classes.
The 1 in the figure represents the package in which the Java class resides.
The 2 in the figure represents the class name of the Java class.
The 3 in the figure represents the main method of the Java class. 7
Add a row of print statements to the main method of the Java class, and you can see that the console prints out the printed content after execution. 8
In the Java class, a test method is added with one row of print statements in the method.
Execute the program again, and you can see 2 lines of code output from the console.
Program execution order as shown in the label.