This page tells you how to download and install Java 8 and Eclipse on Mac OS X, and how to configure Eclipse.
Go to the Oracle website. You'll see something like this:
Scroll down until you see a heading beginning 'Java SE 8u65/8u66.' On the right, you'll see a Download button under the JDK header. Click it. The next screen will look like this:
Click the radio button next to 'Accept License Agreement' and then click on jdk-8u65-macosx-x64.dmg. You'll be asked whether to save the file that is going to be downloaded; click on Save File.
Open your Downloads folder, and double-click on jdk-8u65-macosx-x64.dmg. You'll see this window:
Double-click on the package icon, and follow the instructions to install. When the installation has completed, click on Done. At this point, you may close up the window and drag jdk-8u65-macosx-x64.dmg to the Trash.
In this handout we will download Eclipse Standard 4.4 for Mac OS. The version you should download is Eclipse IDE for Eclipse Committers. It is critical that Java, Python, and Eclipse are either all 32 Bit or are all 64 Bit (and only if your Machine/OS supports 64 Bit). Download Guard Tools. Eclipse ES-Station video management software was developed with small businesses in mind, whether you need to monitor your location, people or assets. ES-Station offers a simple and easy video system setup with easy operation. Available 24/7 from anywhere. Installing Eclipse on Mac OS X In this video tutorial you will learn how to download the latest java version and the eclipse IDE for Mac OS X.
If you already have Eclipse installed on your Mac, you need to get rid of it. To do so, first quit Eclipse if you're currently running it. Then, go to your workspace folder (probably in Documents/workspace) and save anything there that you want to keep, because you're about to get rid of this folder. Next, drag the workspace folder to the Trash.
Go to your Applications folder. One way to get there is, from the Finder, type command-shift-A. You'll a folder named eclipse in there; drag the eclipse folder to the Trash. If you have an Eclipse icon in your dock, remove it from the dock.
Now you're ready to download and install the newest version of Eclipse. Go to this website. You'll see a window like this:
Scroll down until you see 'Eclipse IDE for Java Developers' and click where it says 64 bit under Mac OS X.
You will see this window:
Click on the yellow download button. If asked, click on 'Open with Archive Utility (default)' and then click OK. The download might take a few minutes. You should not feel compelled to donate.
After the download completes, folders should automatically expand. If they don't, double-click on the .tar file. When that's done, you should see a folder named eclipse in your Downloads folder. When you open your Downloads folder, if you see Applications under the Favorites on the left side of the window, you should drag the eclipse folder into Applications. If you don't see Applications, then open a new window for Applications (from the Finder, command-shift-A), and drag the eclipse folder into Applications.
Open your Applications folder, and then open the eclipse folder. You'll see an item named Eclipse; if you like, drag its icon into the dock so that you'll be able to launch Eclipse easily.
Launch Eclipse. If you're asked whether you want to open it, of course you do; click Open. You'll see a window like this:
It will have your user name rather than mine (scot). Select where you want your workspace to be; I recommend the default of your Documents folder. Click the checkbox for using this location as the default, and then click OK.
You'll see a window like this:
Click on the Workbench arrow in the upper right that I've circled. You shouldn't see this screen again, even if you quit Eclipse and relaunch it.
You'll get an empty workbench like this:
We won't be using the 'Task List' and 'Connect Mylyn' windows. Click the 'x' on each to close it. Press the mouse on the Window menu item, then choose 'Perspective', and finally choose 'Save Perspective as..'. Enter 'cs10' for the name of this perspective and press return. Your workbench will now look like this:
You have now installed Eclipse!
You don't have to configure Eclipse the way I do, but you'll probably avoid some confusion if you do. Here's how.
In the Eclipse menu bar, click on the Eclipse menu and then on 'Preferences..'. You'll see a window with two panes. On the left pane is a list of types of things you can configure.
Click on the triangle to the left of General. Then click on the triangle to the left of Appearance. Then click on 'Colors and Fonts.' You should see a window like this:
In the window in the middle, click on the triangle next to Java. Then double-click on 'Java Editor Text Font':
You'll see this window:
On the right, where you can select the size, click 12. Then close this window by clicking on the window's close button.
Close up the General preferences by clicking on the triangle to the left of General. Click the triangle next to Java and then click the triangle next to 'Code Style.' Then click Formatter. Here's what you should see:
Click the button that says 'New..'. You'll see a window such as this one:
You can type in any profile name you like. I used 'CS 10':
You should see a window like this:
Change the tab size to 2:
You'll see that the indentation size automatically changes as well.
Click on 'Blank Lines,' and after 'Between import groups' and 'Before declarations of the same kind,' change the values 1 to 0:
Click on 'Control Statements,' and check the first four boxes as I've done here:
Now click on triangles to close up Java. Click on the triangle next to Run/Debug, and then click on Console:
Click on the green color sample next to 'Standard In text color.' You'll get a color picker:
Slide the slider on the right down, so that you get a dark green. (You're at Dartmouth. What other color could you possibly want?)
Close the color picker window by clicking its close button, and click OK again to close the Preferences window.
And you're done!
Install a new version of Eclipse to use with C++
You may want to print these instructions before proceeding, so that you can refer to them while downloading and installing MinGW and Eclipse. Or, just keep this document in your browser. You should read each step completely before performing the action that it describes.
The Eclipse download requires about 200 MB of disk space; keep it on your machine, in case you need to re-install Eclipse. When installed, Eclipse requires an additional 200 MB of disk space.
The top of the following page will appear in your browser.
In this handout we will download Eclipse Standard 4.5 for Mac OS X 64 Bit; if your computer uses Mac OS X (Cocoa), continue below; otherwise look for the pull-down list showing Mac OS X (Cocoa) and instead choose either Windows or Linux and then continue below.
You will see the following page (don't worry about the name of the institution underneath the orange DOWNLOAD button).
This file should start downloading in your standard download folder. This file is about 200 Mb so it might take a while to download fully if you are on a slow internet connection (it took me about 5 minutes over a cable modem). Don't worry about the exact time as long as the download continues to make steady progress. In Chrome progress is shown on the bottom-left of the window, via the icon
The file should appear as
Terminate the window browsing the Eclipse download.
Move this application into the Applications folder and put it on the dock for simple access. Now you are ready to perform a one-time only setup of Eclipse on your machine.
The following pop-up window will appear
(note it says Eclipse Cpp here, because I already have Eclipse installed for my work with Python, so on my machine I renamed this application Eclipse Cpp.
The following splash screen will appear
and then a Workspace Launcher pop-up window will appear.
In the Workspace text box, your login name should appear between /users and /Documentsworkspace, instead of my name, richardepattis.
Leave unchecked the Use this as the default and do not ask again box. Although you will use this same workspace for the entire quarter (checking projects in and out of it), it is best to see this Workspace Launcher pop-up window each time you start Eclipse, to remind you where your workspace is located.
Progress bars will appear at the bottom of the spash screen as Eclipse loads.
Eventually the Eclipse workbench will appear with a Welcome tab covering it.
You will not see the Welcome tab when you start Eclipse after this first time. You should now see the following Eclipse workbench.
Notice the C/C++ words/icon appear on the top left (in the Window title-bar) and below the upper right-hand corner (beneath the tool-bar).
It will pop-up the following Developer window.
At this point I clicked OK and returned to the original Xcode window, scrolled to the bottom (left), and clicked on the Additional Tools link. I was redirected to login with my Apple ID.
I entered my Apple ID and password and clicked Sign In.
Next a pop-up window with an Apple Developer Agreement appeared; I scrolled to the bottom.
I clicked the box binding me to the agreement and clicked the Submit button.
Next a pop-up window with various developer tools appeared. I scrolled down to Xcode 5.1 (dated April 9, 2014) and clicked on the + to disclose the Xcode 5.1.1.dmg link.
I clicked this link; note the download occupies 2.1Gb of storage: my download took 30 minutes. Then I double clicked the downloaded .dmg file and a pop-window showed itself briefly.
Then a pop-window window asked me to drag/drop Xcode to the Applications folder.
I dragged/dropped Xcode to the Applications folder, and a pop-up window showed itself during the copying.
Then I repeated these steps for Xcode's command line developer tools. I scrolled to Command Line Tools (OS X 10.9) for Xcode - September 2014 (dated September 1, 2014) and clicked on the + to disclose the link.
I clicked this link; note the download occupies 102Mb of storage: my download took just a few minutes. Then I double clicked the downloaded .dmg file and a pop-window showed itself briefly, followed by the following pop-up window.
I double clicked the icon and the following pop-up window appeared, with the word Introduction highlighed.
I clicked the Continue button, and following pop-up window appeared, with the word License highlighed.
I clicked the Continue button, and following pop-up window appeared
I clicked the Agreee button, and following pop-up window appeared, with the word Installation Type highlighed (it skipped highlighing the Destination Select.
(this image appears to be missing)
I clicked the Install button, and following pop-up window appeared.
I entered my password and clicked the Install Software button, and following pop-up window appeared, showing the installation progress.
Eventually, that window was replaced with the following pop-up window with the word Summary highlighed.
I clicked the Close button and terminate the Command Line Developer Tools window.
I pressed return and following pop-up window appeared
I clicked the Install button, and following pop-up window appeared.
I clicked the Agreee button, and following pop-up window appeared briefly.
When it disappers, the following pop-up window appeared.
I clicked the Done button. Then I closed the terminal window.
It is replaced by the following pop-up window.
Click Agree. The following pop-up window appeared.
I entered my password and clicked OK. The following pop-up window will appear briefly
It is replaced by the following pop-up window.
Click Open Other and the following pop-up window will appear (yours might have diffierent documents, but it should show the workspace that you created when you started Eclipse). Click that workspace (to select it) and click Open.
KLUDGE: is this necessary? Could I have dismissed this window and still have run the code?
Click the Finish button.
The * in the editor tab (meaning the file is unsaved) should disappear.
You have now verified the installation of Eclipse for C++.