This happens sometimes if I play with files in svn, and I accidentally change or delete .project , .classpath , .buildpath or .anything that outshine and use different IDEs based on it. The solution I'm using is to create a new project with similar settings to find the hidden files in question, starting from the point, and copy them from an empty project to the current one. Be sure to make a backup, and also open the point files and change any lines specific to your project.
For example, here is my .project file:
<?xml version="1.0" encoding="UTF-8"?> <projectDescription> <name>MyProjectName</name> <comment></comment> <projects> </projects> <buildSpec> <buildCommand> <name>org.eclipse.jdt.core.javabuilder</name> <arguments> </arguments> </buildCommand> </buildSpec> <natures> <nature>org.eclipse.jdt.core.javanature</nature> </natures> </projectDescription>
Given that you are using eclipse for Java, you only need to modify MyProjectName and put the file in the root of your project.
source share