How to use Eclipse to create a new and compile, run Java program __eclipse

Source: Internet
Author: User

Use Eclipse to create a new project and write your first program. Tools/raw Materials

Eclipse, build a good Java development environment. Method/Step

The first is to build the Java development environment, install the JDK first, then configure the environment variables, then install Eclipse. When you're done, you can write Java programs.

When the build is complete, the eclipse is opened and the interface is shown.

A new Java project is started below. Click File--new--java Project.

Enter project name with "HelloWorld" for example, click Next

In the dialog box that appears, select Finish, End

Right-click the SRC folder under the project name. Click New--class.

Enter the class name in the dialog box, noting that the name is consistent with the project name. then click Finish.

Write code.

Compile and run the program and click on the Green dot in the toolbar. Run the program and the results are displayed in the small box below. You can also press F11 directly to compile and run the program. End Considerations

At this point, the first Java program was built successfully.

Related Article

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.