How to build a Java application with MyEclipse __java

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.