On the Linux desktop, Eclipse IDE keeps a separate project list for each workspace. Importing an existing Eclipse project adds it to the active workspace so you can reach its files from Project Explorer.

The import wizard finds an Eclipse project by the .project file at the root of its folder.

Eclipse can work with the project in its current location. With Copy projects into workspace unchecked, edits in Eclipse affect the files in the original folder. Use a project from a source you trust because Eclipse can run its configured builders automatically.

Start with the destination workspace open and Project Explorer visible. Have the full path to the project folder and the name of a file you expect to find in it. The images show the eclipse-workspace workspace and a Java project named hello with a README.txt file.

Steps to import an existing Eclipse project into a workspace:

  1. Open File > Import… in Eclipse.
  2. Expand General in the Import wizard if the category is collapsed.
  3. Select Existing Projects into Workspace under General.
  4. Click Next > to open Import Projects.
  5. Drag the top edge of the Import window down slightly with the left mouse button if Finish is below the screen on GNOME.
  6. Select Select root directory.
  7. Enter the full path to your project folder in the Select root directory field, replacing any previous path.

    The path shown is /home/reader/Documents/hello, the folder that contains .project.

  8. Press Tab from the path field to scan the folder.

    Your project should appear under Projects with its checkbox selected. If the scan lists other projects, leave only the intended project checked. If your project is missing, check that the folder contains .project and that the workspace does not already have a project with the same name.

  9. Clear Copy projects into workspace if it is checked.
  10. Clear Close newly imported projects upon completion if it is checked.
  11. Click Finish to import the checked project.
  12. Expand the imported project in Project Explorer.
  13. Confirm that the file you identified before import appears under the project in Project Explorer.

    In the example, README.txt appears under hello.

Share this guide