CS1027b Computer Science Fundamentals II

Lab 1

General lab instructions to help labs run smoothly

Overview and preparation

We use Eclipse as our Integrated Development Environment, available on the Computer Science Department machines in the Undergrad Labs used as the First Year Teaching Environment (MC 8, 10, 230, 235).

Upon completion of this lab, you should be able to do the following in the Eclipse environment:

Suggested project organization

In Integrated Development Environments such as Eclipse, Netbeans, VisualStudio, etc. we need to create a project in order to run an application program. Most applications consist of multiple files. A project contains all the information about the program, such as a list of program files (source files, class files), IDE settings, and properties. In CS1027, you will create a new project in Eclipse for every application that you wish to run.

Create a folder called (for example) Eclipse or CS1027b to hold all your Eclipse projects for this course. This will contain the project files themselves. The Java source files may be in this folder also (as in Exercises 1 and 3), or in some other (external) folder (as in Exercise 2).

Exercise 1: Getting Started with Eclipse

Exercise 2: Creating a New Project from Existing Source Files

In this exercise, you will create a new project to run the sample Social Networking application whose files are posted on the sample code Section (Topic 1) of the CS1027 Course web page. (We will not concern ourselves with what this code does at present; you will merely use the files to practice this part of the Lab.)

Exercise 3: Creating a New Java Program