Vehicular Networks

CS 795/895

Dr. Michele Weigle
mweigle at
Spring 2008
TR 9:30-10:45 am
E&CS 2120

CS 795/895 | Schedule Blackboard Submitting Assignments

Programming Assignment #1-A

Assigned: Thurs, Jan 24
Due: Tues, Jan 29 (before 9:30am)

Installing Eclipse and JiST/SWANS

First, I assume that you're using a Windows PC for this. You should be able to download and run both Eclipse and JiST/SWANS from your Desktop or your Z: drive so that they show up no matter what lab machine you use.


  1. Eclipse should be installed on the CS lab machines. If it is already installed, you probably don't need to re-install it.
  2. Download Eclipse IDE for Java Developers.
  3. Unzip the file to either your Desktop or Z: drive.
  4. Start Eclipse. You will be asked for a default workspace. Give a sensible location and continue.

JiST/SWANS in Eclipse

  1. Download JiST/SWANS and unzip it into a directory on your Desktop or your Z: drive.
  2. Start Eclipse (if it's not already running)
  3. From the File menu select New -> Project.
  4. Select Java Project, click Next.
  5. Define a sensible project name for your Jist/SWANS project. Select Create project from existing source from the Contents option in the same window. Browse for the JiST/SWANS directory that you created in step 1. Select and continue.
  6. Click Finish in the last window. Your project should appear at the left hand side in Package Explorer tab.

First Steps

Now your project is created and it is time to execute a simple application (or driver in SWANS terminology).

  1. Select the "heartbeat" application from the src\driver package in the Package Explorer window.
    Note: If you don't see the Package Explorer window, you might need to click on the Go to Workspace icon first.
  2. Right-click on, and select Run As -> Open Run Dialog....
  3. Fill in the blanks in the Run window similar to these two figures.
  4. Make the necessary changes and click Run.
  5. The results will display in the Console window. Copy and paste the results into a text file. Put your name and Prog 1-A at the top of the file and submit a hardcopy on the due date.
Note: These directions are based on those from