I have a project in Eclipse and now I want to import another project with a different name and in different location, but with a same structure(same packages, a lot of same
As the projects would have the same project names in the .project file, eclipse would not allow them to be imported into the workspace.
Open the .project file for the project root, confirm and change its name and then import it.
<projectDescription>
<name>project1</name>
</projectDescription>
If the project has a different name that message is a bit strange. Anyway try editing the .project file in the root folder of the second project and change the value of the tag name
The .project file is hidden
What you can do is create a new project with the name that you want it to be called. Once you do that right click on the new project and click import. You can then import your old project into this one which will have all the same files except a different name.