You will use the Java compiler on personal computers to compile the programs you are required to write for
the assignments. The Java compiler is included in a larger software package called the Java Development
Kit (JDK). You can use any plain-text editor of your choice to write your programs, and then use the
tools included with the JDK to compile and run them. There are several of these plain-text editors such as
Notepad++ and RText. Note that Microsoft Word will NOT work properly for writing Java code.
Typically, though, programmers nowadays use an integrated development environment (IDE) to write pro-
grams. IDEs provide an editor that allows you to type your program, commands to compile and run it, and
many other useful tools, all in one application. We recommend a simple and intuitive IDE called Dr. Java
(http://drjava.sourceforge.net). It is a perfect programming environment for solving the assignments
of this course.
However, to use a more powerful IDE which can assist you in writing your code, we recommend Eclipse (http:
//www.eclipse.org/). All instructors and teaching assistants will provide support for these IDEs.
The JDK is installed on the computers in the SOCS laboratory, as are Dr. Java and Eclipse. You are
encouraged to install the JDK and either Dr. Java or Eclipse on your own computer so you do not have
to depend on the SOCS computer laboratory facilities to do your work. Installing any of these is fairly
straightforward. If you need help, you can consult a TA during oﬃce hours.
•Required: The JDK.
–Windows users: You may download the JDK installation program from the following Web site:
http://www.oracle.com/technetwork/java/javase/downloads (choose Java - Download or
JDK (click on the Download JDK button), with no additional software such as Java EE or
NetBeans). The JDK is available at no cost, and there is no time limit on its use. You should
install the JDK before any IDE.
–Mac users: JDK 6.0, 7.0, or 8.0 is installed by default on most Mac computers. It is available as
a Mac OS software update.
–GNU/Linux users: A JDK is available in the software repositories of most of the major GNU/Linux
distributions like Ubuntu or Fedora; you can install it through your package manager.
•Recommended: Dr. Java. You should install this after you have installed the JDK, as this will
enable you to avoid several conﬁguration problems.
•Optional: Other IDEs are slightly harder to install and use, but oﬀer fantastic beneﬁts such as
automatically checking your code for errors. This can be a great help if you struggle with typos.
–Eclipse: http://www.eclipse.org/downloads/ (choose Eclipse IDE for Java Developers)
–IntelliJ IDEA: https://www.jetbrains.com/idea
Oﬃcial policy: McGill University values academic integrity. Therefore all students must understand the
meaning and consequences of cheating, plagiarism, and other academic oﬀenses under the Code of Student
Conduct and Disciplinary Procedures (see www.mcgill.ca/integrity/ for more information).
Plagiarism Policy and Assignments
You must include your name and McGill ID number at the top of each source code ﬁle that
you implement and submit. By doing so, you are certifying that the program or module is entirely your
own, and represents only the result of your own eﬀorts.