score:88

Accepted answer

i've found this solution by googling. i have just had this problem and it solved it.

my mistake was to put a project in other location out of the workspace, and share this workspace between several computers, where the paths difer. i learned that, when a project is out of workspace, its location is saved in workspace/.metadata/.plugins/org.eclipse.core.resources/.projects/projectname/.location

deleting .location and reimporting the project into workspace solved the issue. hope this helps.

score:-1

if you keep a backup of your worskpace folder, then all you need to do is restore the following folder from the backup:

workspace/.metadata/.plugins/org.eclipse.core.resources

score:-1

it worked for me after i created and switched to a new workspace and copied my codebase there.

score:0

<?xml version="1.0" encoding="utf-8"?>
<projectdescription>
<name>lynxster</name>
<comment></comment>
<projects>
</projects>
<buildspec>
</buildspec>
<natures>
</natures>
</projectdescription>

in the name tag give the name of the project folder and save this file with .project extension & paste it in the project folder.

this worked for me.

score:0

in my case i have changed the root folder in which the eclipse project were stored. i have discovered tha when i have runned :

cat .plugins/org.eclip.resources/.projects/<projectname>/.location 

score:0

martin encountered the same issue with a minecraft mod project when i changed the main folder location. normally i would open the project like this

this is how my path looked when i started the project

i got the same "the project description file (.project) for my project is missing." error.

i later found the .project file in the main folder like this.

this is the location where i found the .project file

i found that going eclipse to "file->open project from file system or archive" and navigate to your main project folder with the .project file solved the problem.

my project is already included

this is my first post in here hoping it can help you out, martin.

score:0

i created a new workspace and imported old projects. i just didn’t open this workspace for a long time, i don’t know why this problem happened

score:1

i am using eclipse 3.5.1 on ubuntu. after rebooting my machine my projects in php explorer view were giving the warning that the .project file was missing. the problem was that the external directory where my projects are hosted was not mounted on reboot. so i did a mount -a from the command line and the eclipse recognized the files.

score:1

if you only want to checkout and you delete the folder from the workspace you also need to delete the reference to it in the java view. then it should checkout as if it were checking out for the first time.

score:2

i had the same problem, and i haven't gotten that error since i close the project before i close myeclipse and don't tidy up the default location.

my project source and compiled files are outside the default workspace but there are stubb folders created by default by myeclipse in the default workspace. when i setup the project, there are two .project files - one in the default workspace that points to the working dir, and one .project in my chosen directory.

score:2

if you move the files for whatever reason manually, then elipse lost the reference and output a missing project file error, but the reason is thaty you move manually the files and eclipse lost the reference

score:13

i had the same problem and in my case .project file was also present in the project directory and had correct permissions.

this problem happened to me after i closed and reopened multiple projects quickly one after another and eclipse tried to rebuild them at the same time.

in my case eclipse lost .location file in the workspace directory for 2 out of 5 projects: <workspace>/.metadata/.plugins/org.eclipse.core.resources/.projects/<project name>/.location

i've followed instructions on how to get project list if delete .metadata accidentally and imported the project in the workspace manually via file :: import :: other :: general :: existing projects. after that .location file was created again and eclipse stopped complaining.


Related Query

More Query from same tag