T-Th 9:05
or
T-Th 11:15
in Phillips 101

CS 1110: Introduction to Computing Using Java

Spring 2012

DrJava

The Java programming environment used in CS 1110 is DrJava, a free Integrated Development Environment (IDE). DrJava was developed by Professor Corky Cartwright at Rice University, who has developed a number of IDE intended for beginning students. Dr Java is installed in the ACCEL lab and on most on computers in CIT labs. However, you will probably want it on your own computer as well.

If you have problems, and if you have a laptop, the best thing to do is to bring it in to someone to look at. Any of the course staff or consultants can help you with this. If you cannot bring in your computer, we have provided you with some instructions below. If you are having difficulty with these instructions, please email TA Sidharth Telang <sdt45@cornell.edu>.


Installing DrJava (The Easy Way)

For most people, installing DrJava is a simple download. Perform the following steps:

  • Go to drjava.org
  • Find the section labeled Current Stable Release (not the beta release)
  • Download the "native application" for your platform (Macintosh or Windows)
  • Double-click on the file once it is downloaded

Once you do that, DrJava should be running on your machine. If you can launch DrJava with no error messages, then congratulations: you are good to go.

On the other hand, if you get an error message, then you will need to do more work. But before you try the steps below, the most important step is to first copy the text from the error message and keep it somewhere safe. We need that error message to help you out later, should you need it.


Installing DrJava (The Easy Way Did Not Work)

You are running a Macintosh

No up-to-date Macintosh should have any problem with DrJava whatsoever. By update-to-date we mean running Snow Leopard or Lion, and updated with the latest available software updates. If you are not up to date try that first.

If the problem still persists after the update, then chances are very likely that you have a permissions problem. Is this your second Macintosh and you migrated your data from the older Macintosh? If so, you will need to contact someone to solve the problem. Please email TA Sidharth Telang <sdt45@cornell.edu>.

You are running Windows

On Windows, the problem is generally one of two issues. Either you do not have Java or you have to many Java installations already. The latter might happen if you took this class previously and have an older version of Java installed.

Installing the JDK

DrJava is just an IDE, and it does not automatically come with Java. If Java is missing from your version of windows, you will need to install the Java Development Kit (JDK). Install the JDK, not the JRE. The JRE is for running Java programs but not for making them.

You should go to the Oracle download page for JDK 6 Update 30. Any relatively recent version of JDK 6 should be fine, but under no circumstances should you download JDK 7. JDK 7 is not supported by DrJava. The download should not to ask you to make an Oracle account. It if does, please let us know.

Once you have installed JDK, repeat the four steps from the easy way above. For most people in the class, this appears to solve the problem. If not, there is one more thing you can try.

Cleaning Out Old Java Versions

If you are still having problems, it is likely that there is some old version of Java on your system that is causing problems. Perhaps you took this (or a similar class) previously. Or you downloaded a cool game that needed Java. Whatever the case, it is time to purge your system of those old Java versions.

Go to the Microsoft Install and Uninstall Support page. There is a big button saying Run now. Push that button.

You will get a list of programs when you do that. Look for everything that says Java or JDK. Uninstall those using this program. Uninstall all of them.

Once you have uninstalled Java, download and install JDK 6 Update 30 as described above (even if you already did this once before). Then repeat the four steps from the easy way above.

If this still does not work, it is time for you to get some help. Please email TA Sidharth Telang <sdt45@cornell.edu>.


DrJava Documentation

Once you finally have it running, DrJava is pretty easy to use. The demos given in class and in the demo sessions should help a lot, if you take notes.

If you need more information, help with using DrJava is in Appendix I of the course text and in Chapter 19 of the accompanying CD ProgramLive.

If all else fails, there is documention on using DrJava available on the web.