Eclipse project missing java builder

Description: Eclipse can not build the project, because  project is missing default builder.  It happens most of the time when checking out project from SVN or CVS.

Solution:  You need to add the default Java builder into .project file.

Verify that following lines are present in .project file of the eclipse project. If it is not present in the file, copy it from here and save the file.

Adding default Java builder


<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>

That’s it! select the Java builder from project propertiese > builder, clean and build the project again. you should be able to build the project now.

About these ads
Leave a comment

3 Comments

  1. calandale

     /  December 22, 2010

    That’s great and all, but what is the root cause?
    I’d rather not have to tweak projects that m2eclipse should be able to provision.

    Reply
  2. KevinO

     /  May 25, 2011

    Worked perfectly, thanks. Just a note, you have to restart Eclipse to get this to take.

    Reply
  3. AlanD

     /  June 27, 2011

    Eclipse restart isn’t strictly necessary. Close the project, update the .project file, and then open the project. That will do the job.

    Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: