Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"build.properties does not exist" error in MyEclipse

I using MyEclipse 8.6.1 for development my applications. I get "build.properties does not exist" errors in some project, but workspace compiled and run without problem, only error image(a red image) shown in project root. I search in frume for solve this problem, in some case say this "reason of this problem is or in .project file", but I don't see any problem to this file.

like image 371
Sam Avatar asked Feb 18 '12 07:02

Sam


2 Answers

I fixed this by:

  1. Project/Properties/Builders uncheck all builders Commit

  2. Project/Properties/Builders re-check all builders Commit

like image 168
George Forman Avatar answered Sep 30 '22 00:09

George Forman


This happens on occasion if I'm playing around with files in svn and I accidentally change or remove the .project, .classpath, .buildpath or .anything files that eclipse and various IDEs based on it use. The solution I use is to create a new project with similar settings, to find the hidden files in question beginning with a dot, and to copy them from the blank project to the current one. Make sure to make a backup and also to open the dot files and change any strings that are specific to your project.

For example, here's 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 you were using eclipse for Java, you would only need to change MyProjectName accordingly and place the file in the root of your project.

like image 45
Aram Kocharyan Avatar answered Sep 29 '22 23:09

Aram Kocharyan