CSCI 292 Web Page Programming     Last modified: September 30 2009 05:25.

CSCI 292 Java Programming

To do the problems in this course, you need to install an integrated development environment called Eclipse. Also, you need to install an Eclipse plug-in called Subclipse in order to submit assignments. Following the steps below to set up your system for use in this class.

(1) Get Eclipse

If you use Eclipse in the Computer Science and Engineering labs, you do not need to install Eclipse. In this case, go directly to step (2).

Go to the Eclipse website and search for the downloads page. In the downloads page, you will see several different distributions of Eclipse. I recommend installing Eclipse IDE for Java Developers (92 MB) for this course.

After downloading the zip file, you need to extract the contents somewhere. There is no other installation needed. Start Eclipse by running the Eclipse executable.

(2) Write a Hello World Program

After installing Eclipse, you should write and run a simple program that prints "Hello world" in the Eclipse console window. Marc Santoro has created an easy-to-follow video showing how to do this: Introduction to the Eclipse IDE environment for Java programming. The only change you should make to these instructions is to use an uppercase letter as the first letter in the Hello class that you create.

It is common convention to use UpperCamelCase when choosing class names and lowerCamelCase when choosing method names. By following this convention, other people will be able to more easily read your code. In this course, you need to follow this convetion for every assignment that you submit.

(3) Install Subclipse Plugin

To install the Subclipse plugin, start up Eclipse and do the following inside Eclipse. Marc Santoro has created a video Installing the Subclipse plugin in Eclipse that you can follow for this step.

(4) Check Out Eclipse Projects

When you particpate in discussions through the csci292 google group or Blackboard virtual classroom, we will discuss code that we put into a common Subversion repository. For this reason, you will need to check out projects from this common repository. This section explains how to do this.

Go to the SVN Repository Exploring perspective. To do this, select Window ... Open Perspective ... Other, and then select SVN Repository Exploring. This will open up a new window.

In the new window, click on the far right hand button Add SVN Repository and copy the following url into the url box.

https://web6.ias.csusb.edu:8443/292

Click on the new repository location and view the subfolders. Each subfolder corresponds to an Eclipse project. To retrieve a project, right click on it and issue the command to checkout.

In the checkout window, check the box next to check out as a project in the workspace. Leave the other settings at their defaults and click Finish.

(5) Submit Assignments by Committing into Your Personal Repository

Marc Santoro is in the process of creating a Subversion repository for each student in the class. At some point in time, he will email to you your username and password for accessing your Subversion repository.

For each programming challenge that you work on, you will create an Eclipse project. When you are finished working on a project, you will import it (upload it) into your repository. I will then be able to check out your work and evalaute it.

Marc Santoro has creted a video Introduction to uploading a project to Subversion within Eclipse IDE showing how to import Eclipse projects into your repository.

After importing a project into the repository, you will be able to submit changes as well. This proces is called committing.

I may insert commentary into you source code and commit this into your repository. You can then see my comments or changes to your code by updating.