Back To: [Trinity College] [Computer Science Department] [CPSC 115 Introduction to Computing] Resources for CPSC 115 Introduction to Computing


Resources for CPSC-115 Introduction to Computing


Pair Programming

We will be using pair programming throughout the semester. All students must read guidelines for pair programming before coming to the first lab. You should also view the video on Pair Programming video (uses Flash) or Pair Programming in .mov format.


DrJava

Instructions for Installing DrJava

DrJava is a very lightweight integrated development environment that allows you to create, compile and run Java programs. DrJava requires only that you download an executable .jar file to your directory. No further installation is required. To install DrJava:
  1. Open a Firefox web browser and enter drjava.org into the address line. This will bring you to the main DrJava page where the downloads are located.
  2. Under the Current Stable Release, click the option appropriate for your platform (Linux, Windows, or Mac). This will result in either a .jar (Linux), .exe (Windows), or .gz (Mac) file being downloaded, typically to your desktop. Do not download the the Current Development Release or any Beta release.
  3. If you are on a Windows machine: Simply click on the DrJava icon to execute.
  4. If you are on a Linux machine:
    1. Move the drjava.jar file into a directory of your choice.
    2. Open a command window and cd to that directory.
    3. Start DrJava by typing: ./drjava in that directory.
  5. If you are on a Mac machine:
    1. Move the gz file into a directory of your choice.
    2. Unzip the DrJava file.

Instructions for Running DrJava

  1. DrJava will begin with an open file called Untitled.
  2. Enter your Java code for a new class (or use File/Open to open an existing file).
  3. Save your code using the File/Save As option. Select the location to store your code. I suggest that you create a separate directory under your cpsc115 directory for each lab.
  4. To compile the code, press the Compile button along the top of the DrJava screen.
    1. If you have errors, the lines that have syntax errors will be highlighted in yellow and the error itself will be displayed in the Compiler Output window at the bottom of the screen.
    2. As you correct the errors, the yellow highlighting will disappear.
  5. Correct all errors until you get a clean compile.
  6. Execute your code by pressing the Run button along the top of the DrJava screen.
  7. You should see your output in the Console window along the bottom of the DrJava screen (click the Console) tab.
More help:

Java


Javadoc

Javadoc is a tool for automatically generating Java documentation from your Java source file. The documentation is generated from comments that you use in a specifice formats called "javadoc comments".

Other Resources

These are links to tools, debugging hints, and libraries that you may find useful.
Send Dr. Ellis Mail.
http://www.cs.trincoll.edu/~hellis2/CPSC115/resources.html
Copyright © Heidi J. C. Ellis