Eclipse错误:无法确定/ project-path / [英] Eclipse Error: Cannot determine URI for /project-path/
问题描述
我的项目应该在包资源管理器中列出,但它都是空的,每当我再次导入项目时,它表示没有找到任何项目。
此时,我通常去我的工作区文件夹,并删除.lock文件并重建工作区,但是有替代方法吗?这个错误发生在每次〜5次我重新打开Eclipse,它变得非常烦人。任何帮助将不胜感激!
编辑:好的,我刚刚尝试删除。工作区中的.metadata文件夹中的.lock文件,我仍然得到相同的错误。任何建议?
编辑2:在关闭我当前打开的标签页时,我收到此错误。开放的项目是Maven项目,如果这有所作为。
所以我有点迟到了,但我修正了重新导入我的项目。
在文件 - >导入下选择常规 - >将现有项目导入工作区。在下一页中,将工作空间目录设置为导入的根目录,这将给您一个警告,如工作区中已有的一些项目。忽略此,然后单击完成。
之后我所有的项目都回到我的工作区。
祝你好运
I'm running Eclipse Luna on Ubuntu 12.0.4 in VirtualBox with a Windows 8 host and every once in a while, I will boot up Ubuntu and open up Eclipse to find this:
My projects should be listed in the package explorer but it's all empty and whenever I try to import the project again, it says no projects are found.
At this point, I usually go to my workspace folder and delete the .lock file and rebuild the workspace but is there an alternative to this? This error happens every ~5 times I reopen Eclipse and it has become very annoying. Any help will be appreciated!
EDIT: Okay I just tried deleting the .lock file in the .metadata folder in my workspace and I'm still getting the same error. Any suggestions?
EDIT 2: While closing my currently open tabs, I got this error. The projects that were open were Maven projects if that makes a difference.
so I am a little late for the party, but I fixed that on reimporting my projects.
Under File->Import.. you choose General->Import existing Projects into workspace. On the next page you set your workspace directory as the root directory for importing, which will give you a warning like "Some projects already exist in workspace". Ignore this and click finish. After that all my projects where back in my workspace.
Good luck
这篇关于Eclipse错误:无法确定/ project-path /的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!