Skip to main content
Banner graphic with text description of the course website

“Intro to Eclipse” Exercises

LAB #01 Exercise #5: Importing an Archive Project



Visit the following URL: http://www.cse.yorku.ca/course/1710/page/files/

Download the project archive file called "Week01.zip" to the default location by double-clicking on it.


For Explorer, be sure to select "Save" and NOT "Open". (We want Eclipse to unarchive the file, not Windows.)


The default download location for Eclipse and Explorer is C:\Documents and Settings\cseXXXXX\My Documents\Downloads.


The location of the downloaded file is not a major concern and the download can go pretty well anywhere*



In Eclipse, select File -> Import. This will bring up the "Import" dialog box. This is shown on the next two screen shots.
Pasted Graphic

Pasted Graphic 1


Select the item "Existing Projects into Workspace" under the "General" category. Press the "Next >" button.

Pasted Graphic 2

Select the "Select archive file:" option. DO NOT select the "Select root directory" option. Press the "Browse" button that is next to the "Select archive file:" option. You will be presented with a file chooser. Using the file chooser, navigate to the default download location (or wherever you downloaded the file in Step 1)
Select the project archive file that you downloaded in the step above.
Click "Finish"

You will now see the following:

Pasted Graphic 4


Congratulations. You imported a project into Eclipse, the files were extracted from the archive by Eclipse and placed in the correct location.



Have a look at this app's documentation by opening its API (double-click on index.html)


Pasted Graphic 5


Pasted Graphic 7


Now follow this link:

Pasted Graphic 8

This is the documentation for the main method:

Pasted Graphic 9


Run Lab01B to see the output. Does the program behaviour match its specified behaviour? This question is the core issue for the concept of program correctness. We will cover this concept in more detail in lecture.

Now move to the last task.




*to be precise, the location can be anywhere EXCEPT Z:\workspace-win32\1710\, but the download will not go there unless you specify it.