Moving project to another folder in Eclipse

前端 未结 9 1690
忘掉有多难
忘掉有多难 2020-11-29 18:03

I generally have my working projects sitting on folders on my Desktop. When they are completed I just move them to a c:\\dev\\. The thing is I\'m doing it in a

9条回答
  •  遥遥无期
    2020-11-29 18:26

    WHEN EVERYTHING ELSE FAILS:

    Copying an Eclipse project from one directory (let's call it old_dir) to another directory (let's call it new_dir):

    1. Open Eclipse and specify the copied working directory in your new_dir.

    2. Once it opens the project in the this new_dir, the projects listed under Project Explorer Tab might still be the ones contained in the old_dir (you can check it by right clicking each and following through: "Resource -> Linked Resource" to see the Path Variables values). Thus, they have to be removed from this work space. Delete the Nios 2 Application Project and the BSP Project from the Project Explorer Tab by right clicking on it and selecting Delete option which will pop a new window. In the pop-up window, make sure that the Delete project contents on disk check box is UNCHECKED before clicking OK to delete the Projects. Otherwise, it will delete it from the old_dir where you copied the project from.

    3. Right click in the Project Explorer Tab Area → Import → General → Existing Projects into Workspace and add the copied Nios2 Application Project and the BSP Project from the new_dir.

    4. Right click in the Project Explorer Tab Area → Index → Rebuild, otherwise the Nios2 Application Project will not be able to use the includes provided by the BSP Project.

    5. Click on Project → Clean → OK to clean and rebuild the whole project.

    6. When using console to talk to the NIOS, make sure elf's path is updated to the new project directory as well!

提交回复
热议问题