CS 112
Spring 2019

Old version

This is the CS 112 site as it appeared on May 8, 2019.

Installation instructions for MacOS

Installing the JDK

  1. Go to the download page for Java SE Development Kit 8 on the Oracle website. (Important: You need version 8. Version 9 will not work.)
  2. Find the first table of download links (the one for Java SE Development Kit).
  3. Click on the radio button next to Accept License Agreement.
  4. Find the line for macOS and click on the name of the file to the right of the red arrow on that line. (The file name should end with .dmg).
  5. If you receive an error message that says you are downloading from an unsafe or unknown site, you’ll need to change your security preferences, at least temporarily, by taking the steps outlined in the Lowering your security settings section below.
  6. Click the .dmg file to mount the Java installation disk image.
  7. If the mounted image doesn’t show up in a Finder window, open a new Finder window and select the disk image from the sidebar. Once open, double-click on the .mpkg file to start the installer.
  8. You should be able to use all of the default settings that the installer gives you. Wait for the installer to finish and then close it. You can now unmount the disk image by clicking the eject icon in the sidebar or dragging it to the Trash. Then you can delete the .dmg file by dragging it to the Trash.

Installing Eclipse

  1. Go to the download page for Eclipse.
  2. Click the orange button that appears under the heading Get Eclipse IDE.
  3. On the next page, click the orange Download button.
  4. If prompted to do so, choose to save the file.
  5. Double-click or tap the icon for the downloaded file. This will start up an installer program that presents you with a list of options.
  6. In the installer window, click on the first option – the one named Eclipse IDE for Java Developers. (Important: Do not choose the similarly named option that includes the abbreviation EE.)
  7. Click the orange install button. You should be able to use all of the default settings that the installer gives you.
  8. Once the installation is complete, click the green Launch button.
  9. When asked to select a directory as workspace, you can just use the default workspace that the program provides. In addition, we recommend click the checkbox next to Use this as the default and do not ask again. Then click the Launch button.
  10. You may see a Welcome screen with various options. If you have time, we encourage you to try the option labeled Create a Hello World application, which will guide you through the basic steps of using Eclipse for Java. If you don’t have time, simply close the program, and you can try it the next time that you open Eclipse.

Lowering security settings

MacOS may stop you from downloading or running applications downloaded from the Web (as opposed to through the Mac App Store) unless you lower your security settings. Here’s how to adjust them so that you may install and run applications from anywhere:

  1. Open System Preferences, located under the Apple menu in the top left corner.
  2. In the Security & Privacy preference pane, click the lock icon and authenticate as an administrator user.
  3. Make sure the radio button under Allow applications downloaded from: is set to Anywhere.
  4. Re-download or re-open the desired application.