Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse Error: Cannot determine URI for /project-path/

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:

Screen shot of my Eclipse

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.

New Error

like image 640
Josh Avatar asked Nov 10 '14 04:11

Josh


People also ask

How do I view packages in Eclipse?

To view the project explorer, click on Window menu then, click on Show View and select Project Explorer. There is simpler way to open project explorer, when you are in the editor press alt + shift + w and select project explorer.


1 Answers

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

like image 171
Jay Avatar answered Oct 16 '22 07:10

Jay