Writing and running Java programs using Eclipse (base)

Source: Internet
Author: User

1. First Java program run you need to download and install the JDK, which is the necessary environment for Java to run.

2. Locate eclipes on the desktop and double-click to open it.

3. During the Eclipes launch, a window will pop up, allowing you to fill in the Java Workspace Save directory, in this directory will save all the source code files you write, it is recommended not to put the work area on the C drive

4.ecplies after the completion of the launch, there will be a welcome page, this no tube, directly click on the top left of the difference, cancel off on it, and then into the main interface eclipes.

5. New item: Click on the file = "new =" java-project in the upper left corner, pop up a small window, fill in the project name click to confirm.

6. Create the package: Click on the item, open it to find SRC, right click on the new = "package, write the bag name, click OK."

7. Create a Java file: Right-click the package, create a Java file under the software package, right clicking on new = "Class

8. Write: Write the source code in the source editor. and save.

9, run: Right-click the Java file in the file browser, and then hit run as, the following command Line window in the opportunity to appear in the results.

Writing and running Java programs using Eclipse (base)

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.