Eclipse - Import an existing project?

后端 未结 5 826
清酒与你
清酒与你 2020-12-15 19:51

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

相关标签:
5条回答
  • 2020-12-15 20:40

    For the new versions of Eclipse, it is File > Import > General > Existing projects into workspace

    0 讨论(0)
  • 2020-12-15 20:42

    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.

    0 讨论(0)
  • 2020-12-15 20:50

    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
    
    0 讨论(0)
  • 2020-12-15 20:52

    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.
    
    0 讨论(0)
  • 2020-12-15 20:52

    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.

    0 讨论(0)
提交回复
热议问题