CS 112
Spring 2018

Old version

This is the CS 112 site as it appeared on May 11, 2018.

Installation instructions for Windows

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 8u161).
  3. Click on the radio button next to Accept License Agreement.
  4. Find the line for Windows x64 and click on the name of the file to the right of the red arrow on that line. (The file name should end with -x64.exe).
  5. If prompted to do so, choose to save the file.
  6. Depending on your browser, you should either click/doubleclick on the downloaded file or click the Run button provided by your browser. This will start up an installer program. If necessary, give it permission to make changes to your machine.
  7. You should be able to use all of the default settings that the installer gives you by just clicking on the Next button.
  8. Once the installation is complete, click the Finish button.

Installing DrJava

  1. Go to the DrJava website.
  2. Click on the button labeled Download Jar File and download the file. Important: You must download the Jar file version. Do not choose any other version – not even the Windows version.
  3. If the program is not downloaded to your Desktop, you may want to find the program in your downloads folder and move it to your Desktop.
  4. The program comes ready to use, so there’s nothing else to do in order to install it. If you wish, you can rename the file DrJava to make the name more readable.
  5. Double-click on the DrJava icon to start the program.
  6. Once it starts up, look in the lower right-hand corner of the DrJava window. Under the Compiler heading, you should see some version of the JDK listed. If you see None, you may need to search for a file named tools.jar on your computer and specify its location manually by using the Edit → Preferences menu in DrJava. See the following page for more information: http://drjava.org/faq.shtml#no-compiler
  7. Select the Preferences option from the Edit menu in DrJava and do the following:
    • Click on Display Options in the Categories pane and make sure that the checkbox for Show All Line Numbers is checked.
    • Click on Miscellaneous option in the Categories pane and change the Indent Level setting to 4.
    • If the default fonts are too small, click on Fonts in the Categories pane and change the fonts so that the sizes are larger. Important: For the Main Font, you should use a fixed-width font in which each character has the same width. Options include Lucida Console and Courier New.
    • Click Apply, then click OK.