CSE 115/503 - Spring 2011 - Importing and Exporting Files in Eclipse
(Directions written by Carl Alphonce)
To import a project to an Eclipse workspace, first create an empty project in your workspace (or check out the base project from the labs directory, as appropriate).
Right-click on the project name in the Package Explorer, and select "Import...".
In the "Import" dialog, choose General->Archive File, and click "Next>".
Browse to the .jar or .zip file that contains the project you want to import, select it, and then click "Finish". Allow the import to overwrite any existing files in the project.
To export a project from an Eclipse workspace (e.g. your workspace on the CSE servers) so that it can be readily imported into another Eclipse workspace (e.g. your workspace on your laptop) right-click on the project name in the Package Explorer, and select "Export...".
In the "Export" dialog, choose Java->JAR file, and click "Next>".
In the "JAR Export", make sure the correct project is selected. Make sure that, in the top part, the "Export Java source files and resources" is selected, AND that the none of the other three options are selected. Enter a name and location for the exported JAR file, then click "Finish".
CSE 115/503 - Spring 2011 - Footer
Page maintained by Adrienne Decker
Contact: firstname.lastname@example.org | 130 Bell Hall | (716)645-3184