"build.properties does not exist" error in MyEclipse
Asked Answered
N

4

6

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.

Nyctalopia answered 18/2, 2012 at 7:22 Comment(0)
R
9

I fixed this by:

  1. Project/Properties/Builders uncheck all builders Commit

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

Rhombohedron answered 30/4, 2013 at 18:21 Comment(1)
This worked for me, but I don't know why I have to do this.Dorotea
W
1

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.

Watteau answered 18/2, 2012 at 7:33 Comment(7)
what content of .buildpath or .build.properties files because when create new project in MyEclipse, that don't generate these files.Nyctalopia
These files are invisible, so make sure to show hidden files in your OS. If they really don't show up but other hidden files do, then make sure you're creating a Java project and not a standard project, which might not have these files.Watteau
I using windows xp as OS and set show hidden files but don't see any .buildpath or build.properties in my project, only .project and .calsspath exist in my root project.Nyctalopia
Then copy these files, edit their contents to reflect the name of your project like I've shown above, and copy/replace the existing files in your problematic project (remember to backup)Watteau
I don't see any .build or build.properties files;Nyctalopia
Hmm... they should be created in the a folder similar to /myworkspace/project_folder/Watteau
You might want to see #1227142Watteau
L
1

Uncheck everything in Project->Properties->Plug-In Development->Runtime Classpath

Levitical answered 2/2, 2015 at 19:18 Comment(0)
S
0

a simple refresh on the project worked for me

Supersedure answered 3/5, 2015 at 14:38 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.