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.

  1. Right click on the package where the classes should go.
  2. Select the Import menu item.
  3. In the import wizard that pops up, select the option to import a file system (and hit the Next> button).
  4. Use the browse button to find the directory with the code in it.
  5. Click on the folder that shows up on the left.
  6. Select the files on the right.
  7. Click on the Finish button.
  8. The Java classes should show up in the package, and you can double click on them to load them into the editor.