Complete this lab

It is important that you are comfortable navigating the directory structure of an eclipse project. During your lab tests, you will need to quickly find and submit your Java source code files. At the end of the labtest, the computers reboot and all of your work is deleted from the system; if you fail to submit your work before the computers reboot then you will receive a zero on your test.

The last exercise of this lab is to submit 5 files that are part of an existing directory structure.

Step 1

Open a new terminal, or if you already have an open terminal, type cd and press enter to go to your home directory.

Step 2

Copy a zip file containing an existing eclipse workspace directory by typing in the following command in your terminal (make sure to include the space and period at the end of the command):

cp /eecs/dept/www/course/2030/labs/lab0/lab0.zip .

Step 3

Unzip the zip archive by typing in the following command in your terminal:

unzip lab0.zip

Step 4

There should now be a directory named lab0_workspace in your home directory. Confirm that this is true by typing ls into your terminal and examining the output.

Step 5

Explore the directory structure under lab0_workspace using the commands cd and ls. Find and submit the following files:

    SpiroUtil.java
    Vector2.java
    Turtle.java
    Test1C.java
    Test2E.java
    

To submit a file, make sure your terminal is in the directory containing the file you want to submit and type in the following command:

    submit 2030 lab0 xyz
    

where xyz is the name of the file that you want to submit. Pay close attention to the output of the submit command; if you don't see only the message All files successfully submitted then something has gone wrong.

Remember that you can go back to your home directory by typing in the command:

    cd
    

Also remember that you can go to the parent of the current directory by typing in the command:

    cd ..
    

Step 6

If you want to check which files you have submitted you can use the command:

    submit -l 2030 lab0
    

where -l is the hyphen followed by a lowercase ell (not the digit one). Lab 0 is complete once you have submitted HelloWorld.java and the 5 files listed in Step 5.