Eclipse Basics - Notes - CSC 130 - Computer Science I
Jump to: Exporting a Project Importing a Project
Importing a Project into Eclipse
Below are step-by-step instructions, followed by a video exhibiting the same steps. They are specific to Windows 7; Apple and Linux users will follow very similar steps. You'll need flash installed on your machine to view the video (sorry iPad and iPhone users).
- Open the folder where your Eclipse workspace is located.
- Download the zip file of the project that you want to import. If you want to follow along with these instructions, use Lec01Play.zip.
- Enure that the downloaded zip file is in the workspace folder opened in step 1.
- Unzip/Extract the file by right-clicking and selecting Extract All.... Accept the default settings and click the Extract button.
- Confirm that you now have a new folder of the same name as the file.
- In Eclipse, ensure that you are in the same workspace as the folder where you just unzipped. Then click the File menu and select Import....
- If not already selected, open the General folder and then double-click Existing Projects into Workspace.
- Click the Browse... button beside the Select root directory: textbox. Your workspace folder should already be selected, but if not, navigate to your workspace folder and click OK. Check only the boxes for the folders you want to import, then click Finish.
- Confirm success of the import by opening one of the code files in the Project Explorer window in Eclipse. For example, if using the file provided at the beginning of these instructions, open Lec01Play, then src, then lec01play, then finally Lec01Play.java.
Exporting a Project from Eclipse
Below are step-by-step instructions, followed by a video exhibiting the same steps. They are specific to Windows 7; Apple and Linux users will follow very similar steps. You'll need flash installed on your machine to view the video (sorry iPad and iPhone users).
- With your project in Eclipse open, click File then Export....
- If not already open, double-click the General folder, then select Archive File.
- Click the Deselct All button.
- Locate your project in the left-hand side and click the checkbox next to it. Ensure that there is a checkmark
- Click the Browse button.
- Locate a folder to place the file and then give it a name in the File name: textbox. If you are submitting a project for grading, include your username in the filename.
- Click the Save button.
- Click the Finish button.
If you want to confirm export, create a new workspace folder and copy the zip file there. Open Eclipse using this new workspace. Import the zip file and see if it runs correctly.
Creating a New Project in Eclipse
Below are step-by-step instructions, followed by a video exhibiting the same steps. You'll need flash installed on your machine to view the video (sorry iPad and iPhone users).
- Open the Eclipse program. If using an Elon lab machine, bring up the Windows 7 start menu and search eclipse.
- In the File menu, click New >, then Project...
- In the New Project dialog box window, scroll (if necessary) to the Processing folder, then select the Processing Project option and click the Next > button.
- In the Processing dialog box, type a name (using only letters and/or numbers) in the Project Name text box, then click the Finish button.
- It may seem that nothing has happened. If not currently in view, show the Project Explorer by clicking the Window main menu item, then Show View >, then Project Explorer.
- Locate the project name you provided 2 steps ago and expand it by double-clicking. Just for this example, let's say that you named your project HelloWorld. Expand the src subitem under HelloWorld by double-clicking, then expand the subitem under that with the name of your project (in this example, it would be helloworld. Finally, click the java file that appears (in this example, HelloWorld.java
- You should see an outline for a Processing project.