Hands on Testing Java
Importing Existing Classes into Eclipse
For CS 108 (Fall 2005), the classes you need to import should be
in /home/cs/108/hotj
. Each lab has its own folder
there, and the classes for the lab are found in the appropriate
folder.
- Right click on the package where the classes should go.
- Select the Import menu item.
- In the import wizard that pops up, select the option to import
a file system (and hit the Next> button).
- Use the browse button to find the directory with the code in
it.
- Click on the folder that shows up on the left.
- Select the files on the right.
- Click on the Finish button.
- The Java classes should show up in the package, and you can
double click on them to load them into the editor.