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
Query login Eclipse official website, because I was developed in Java, so the steps are as follows:
- 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
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
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)
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.
5. Open after 1 as shown, after successful entry, 2 is shown
6. The top left corner of the interface has a "welcome" page name, which closes the page and appears
Now, formally congratulate you can start to write Java, now I do a demonstration, for example, output a "Hello world! "A classic example.
1. In the left column box, right-click, select "New" and click "Java Project" in the shortcut menu that appears
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".
3. Below, you need to build a class, click "src", 1, right click, select "New", and then select "Class". Appears 2
4. Then enter the name of the class. Click "Finish". Note that main should remember to check.
5.OK, start typing code! Note that the main frame code system will automatically display, without our own input, this is still very convenient!
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?