CS 110 Introduction to Computing with Java
Tips on Installing Software Development Tools at Home
Fall 2010


We cannot directly support your home environment for CS110.  However, here are a few tips that may help you install the same environment at home that we are using in the labs in the library and in our PC/UNIX Lab.  All the software is free on the internet, though you’ll need a broadband connection for downloading large files in a reasonable amount of time.


We will be using Java 2 Platform, Standard Edition, Version 6 (J2SE 1.6.2).  You need to download and/or install the following pieces of software.  Follow the manufacturer’s instructions for installation.


·          JDK You need to download and install the J2SE Development Kit (JDK).  You can download it from Sun JDK 6.2 Download Page.  A few points:

Ø       You do not need to download the version including Enterprise Edition (EE) or NetBeans.  NetBeans is an open-source, integrated development environment (IDE) for Java.  We will be using a different Java IDE (see below). 

Ø       You may want to down load the Java 1.6 Documentation (optional).  It is also available on line.

·          JRE - You also need to download and install the JRE.  The version in the JDK download seems to need patches that are in the additional JRE download


·          JUnit Software – You need to download and unzip the JUnit software directory.  Put the unzipped directory in a directory C:\Program Files\JUnit.  There is no installation process for this software package.


·          Dr JavaDr Java is an Open Source Java IDE.  The file that you download is the executable application itself: drjava-stable-20090821-r5004.exe.  You do not need to perform any “installation” process after downloading it.  Just execute the downloaded file itself and do these configuration steps.


1.  Configure the Java SDK that you want Dr Java to use.  Using the menu Edit -> Preferences for Category “Resource Locations”, fill in the “Tools.jar Location”.  Enter or browse to the Java SDK tools.jar file location that you just downloaded and installed as above.  If you have installed the SUN JDK in the normal location, this should be: C:\Program Files\Java\jdk1.6.0_02\lib\tools.jar.  If you have installed the JDK somewhere else, browse to the file tools.jar and select that filename. 


2.  Configure the Extra Classpath field with the location of your JUnit software directory, e.g. C:\Program Files\Junit\junit4.4.   Remember how to find this configuration page because later you may need to add more entries to the “Extra Classpath” section.


3.  Go to the Category “Display Options” and select the check box for “Show All Line Numbers”.  In some cases, we may discuss a point about a Java source file by identifying the line number.  This option will be helpful.

·          Test your installation – Download the Lab 1 Project File (See link on the CS110 Syllabus Page).  Unzip it and test it as explained in the Lab 1 Assignment.