Reputation: 77646
I have a project that I am trying to add to my workspace. But eclipse cannot detect a new project in the directory I am pointing to.
How can I let eclipse know that a specific directory contains a project?
My directory contains:
Upvotes: 18
Views: 64818
Reputation: 13302
Like this
Importing existing projects
You can use the Import Wizard to command link import an existing project into workspace.
From the main menu bar, select command link File > Import.... The Import wizard opens.
Select General > Existing Project into Workspace and click Next.
Choose either Select root directory or Select archive file and click the associated Browse to locate the directory or file containing the projects.
Under Projects select the project or projects which you would like to import.
Click Finish to start the import.
Upvotes: 2
Reputation: 386
if you cannot import project like some above solution, you should create new project has name procject like which procject you want to import. Remember to put your import project into workstation.
Upvotes: 0
Reputation: 37
This solution is for eclipse
I had a similar problem when I was cloning repositories from bit bucket from the command line, it would clones into the local repository. So the above solution did not work because it would say that the files were already in the local repository.
The solution:
1. Window > Show View > other > Git repositories
2. Right Click on the git repository tab > import projects
3. navigate to the repository you want to put into eclipse
4. select the third option 'import as general project', if selecting this does not work then view other options and select the option that applies to you
5. finish
Upvotes: 0
Reputation: 20698
For the new versions of Eclipse, it is File > Import > General > Existing projects into workspace
Upvotes: 11
Reputation: 5184
You just have to do a Import->Existing Project into Workspace, and then browse to the location where the .classpath and .project files exists for your project.
Upvotes: 14