Importing and Exporting Java Projects in Eclipse

North Carolina State University
CSC 326 - Software Engineering
Laurie Williams, Ben Smith. [Contact Authors]

Back to Software Engineering Tutorials

0.0 Outline
1.0 Importing a Project to Eclipse From an Archive File
2.0 Exporting a Project from Eclipse to an Archive File
3.0 Submission Guidelines

1.0 Importing a Project to Eclipse From an Archive File

To import an entire Eclipse project from an archive file, follow these steps.

  1. Go to File -> Import. The following dialog will appear.
  2. Select Existing Projects into Workspace.
  3. NOTE: It may seem counter-intuitive to not be selecting Archive File at this step. The Archive File option is used for importing Eclipse resources into an existing Eclipse project. Since you are importing an entire project, you must select Existing projects.

  4. Click the radio button next to Select archive file and click the Browse button on the following dialog.
  5. Find the archive file on your hard disk. Click Open to select it.
  6. If you have selected an archive file containing an entire Eclipse project, the project name will appear in the box below, already checked. Click Finish to perform the import. The example presented in this Figure is for the CoffeeMaker_WebDB project, but your project may be iTrust, some other version of CoffeeMaker, or any project.
  7. Congratulations, the project should now appear in your Project Explorer view!

Top | Contents

2.0 Exporting Resources from Eclipse

To export an entire Eclipse project into an archive file, follow these steps.

  1. Go to File -> Export. The following dialog will appear.
  2. The easiest way to share projects with the rest of the world is through compressing the project files into an archive file, a process which Eclipse performs automatically. Select Archive File in the list presented in the figure above and click Next.
  3. The following figure will appear. Click the checkbox next to the project you would like to export.
  4. Then, you'll want to click Browse and choose a location and name for the archive file (this is equivalent to "Save As..." in many applications).
  5. After you have finished filling out this dialog, it should look similar to the following. In this example, we are exporting iTrust.
  6. Click Finish. Eclipse will automatically export and zip your project into an archive file and store it in the location you specified. Congratulations!
Top | Contents

3.0 Submission Guidelines

Projects are to be submitted through the WolfWare submit locker of your lab section. Each project should be exported from Eclipse as a zip file, or the project folder can be zipped up from inside Windows. It would be helpful if the name of the file that you submit contained your name or unity ID, your partner's name or unityID, and the HW name (something like Please make sure you put your name and your partner's name at the top of every file.

The TAs will unzip your project and import it into their Eclipse workspace. From there we will run your application and grade your documentation and/or models. For best results, it would be a good idea to have all external resources that you need for your project (like various external JARs) in a lib/ directory in your project. We will be willing to do minor build path changes to get your project to work with no penalty, but it is good form to have the project ready to deploy as soon as we import it into Eclipse

Top | Contents

Back to Software Engineering Tutorials

Moving Resources Between Eclipse and Rational XDE Tutorial ©2003-2004 North Carolina State University, Laurie Williams, Dright Ho, Sarah Heckman
Email the authors with any questions or comments about this tutorial.
Last Updated: Friday, July 27, 2007 11:11 AM