Create a Project
- From the menu, choose: File | New | Project.
Be sure Java and Java Project are chosen in the displayed
window. Click Next.
- The next window is important:
- Enter a name for the project - call it tutorial.
- In Project Contents, uncheck the box, use default and
click on Browse.
- In the Browse for folder window, navigate to the parent folder
for the new project. This may be your student folder on datastor. Then click
the New Folder button to define the folder you wish to use for the
project files. Name the folder tutorial. Click OK.
- Click Finish (don't click the Next button).
An open folder icon should appear in the Package explorer panel. Expand the
folder by clicking on the +. At this point there are no java files listed, however
there is a reference to the JRE System Library. You have now defined a project
and are ready to define some classes.
Removing the project
Right-click on the project name. From the pop-up menu, you can close the project
(remember this in the future). For now, you will choose Delete. In
the next pop-up window, be sure to check Do not delete contents and
click Yes.. This choice merely removes the project name from the explorer; it
does not delete any files.
Opening the project
Now you will redefine the project you just deleted.
You are now ready to create a Java file. Go to the next subtopic.
- Choose File | Import from the menu.
- Choose Existing Project into Workspace and click Next. (Note: choose
File system whenever you want to import a non-Eclipse project that already
exists on your drive.)
- In the Import window, click Browse - then navigate to the project
folder, tutorial. Click Finish (don't click
Next). Your project is back in the workspace. Note: when using public PCs,
old workspace settings may be lost, so be sure the use this process to import
an Eclipse project into the Package explorer.