How do I install Eclipse on a Mac system and run a Java program?

Source: Internet
Author: User

Link Address: http://jingyan.baidu.com/article/7f41ecece8ef5b593c095c71.html

Eclipse now has a Mac version too, let's try it! Now I'm going to bring you together to install Eclipse and show you an example.

Tools/Materials
    • A laptop computer with an apple system
    • Eclipse Software
Method/Step
  1. 1

    Query login Eclipse official website, because I was developed in Java, so the steps are as follows:

  2. 2

    1. Find the "Eclipse IDE for Java developers" where the "Mac OS X (Cocoa)" is automatically selected under Mac, depending on the system you are currently using, the upper-right corner is automatically selected.

  3. 3

    2. Then click on the right "Mac OS X 64bit" (Here my air is i5 processor can be used 64-bit), depending on your computer can also select "Mac OS X 32bit" to download.

  4. 4

    3. After entering the download screen, click the green download arrow to download the browser. (The format after download is compressed, you need to unzip it first)

  5. 4. After the download is complete (after downloading the format is compressed, you need to extract), in the extracted Eclipse folder to find Eclipse.app, click Open.

  6. 5. Open after 1 as shown, after successful entry, 2 is shown

  7. 6. The top left corner of the interface has a "welcome" page name, which closes the page and appears

  8. Now, formally congratulate you can start to write Java, now I do a demonstration, for example, output a "Hello world! "A classic example.

  9. 1. In the left column box, right-click, select "New" and click "Java Project" in the shortcut menu that appears

  10. 2. Move the cursor to the front of the project name fill-in box and give your project a name. Here I fill in "Project name" as "First Test". Then click "Finish". OK, now that the project has been completed, the name is "first Test".

  11. 3. Below, you need to build a class, click "src", 1, right click, select "New", and then select "Class". Appears 2

  12. 4. Then enter the name of the class. Click "Finish". Note that main should remember to check.

  13. 5.OK, start typing code! Note that the main frame code system will automatically display, without our own input, this is still very convenient!

  14. 6. Enter the code, click the menu bar "Run" button, OK, we can in the bottom column "Console" interface to see our results!

How do I install Eclipse on a Mac system and run a Java program?

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.