13

My Eclipse does not show the 'Java Build Path' option in my Java project's properties. The properties screenshot is attached below. What might be the reason for this? On the left side there should be an option for 'Java Build Path'.

Build path not available

Jasperan
  • 2,154
  • 1
  • 16
  • 40
Riju Mahna
  • 6,718
  • 12
  • 52
  • 91
  • See this as well [Adding Builders to Project in Eclipse](http://stackoverflow.com/questions/7434400/adding-builders-to-project-in-eclipse-and-incremental-ness) – NoNaMe Dec 19 '12 at 10:36
  • possible duplicate of [Eclipse adding your own build command](http://stackoverflow.com/questions/2976610/eclipse-adding-your-own-build-command) – Earlz Dec 19 '12 at 18:14
  • Select the project -> 'Properties' -> 'Java Build Path' [![enter image description here](https://i.stack.imgur.com/kdWEA.png)](https://i.stack.imgur.com/kdWEA.png) [![enter image description here](https://i.stack.imgur.com/iYNYn.png)](https://i.stack.imgur.com/iYNYn.png) – monkSinha Jul 18 '17 at 13:45
  • Similar issue answered in below post https://stackoverflow.com/a/59519099/7434392 – Kunal Dec 29 '19 at 11:48

8 Answers8

42

To resolve this issue follow the below options

1) Go to Project root 2) Select "Project facets" from Properties 3) Check "Java"

This fixes the issue

vijay junupalli
  • 521
  • 4
  • 7
  • 4
    Excellent, to the point answer, thank you so much... Right click the project-> Properties -> Select Project Facets -> Click Convert to faceted form... -> In Project Facets an option with Java would be preselected (if not select Java ) -> Finally click OK – user3848789 Oct 25 '16 at 07:56
  • Option Java is not existed.. so how..? – aswzen Jan 12 '18 at 04:04
  • Did not had hope, but tried :P and it worked. – suhas0sn07 Sep 27 '21 at 18:50
13

I was in the same situation, and found two different solutions for this.

  1. Right click on the src folder and check if you can see the option to configure the build path. After that, right click on the project and do Maven > update project.

If this does not work,

  1. Right click on the project > properties > project facets and click on the link saying convert the project into faceted project.

Right click on the project, hit Refresh and check if you get the option to configure build path now.

Jasperan
  • 2,154
  • 1
  • 16
  • 40
Tadele Ayelegn
  • 4,126
  • 1
  • 35
  • 30
2

You may get some help from any of these blogs

How do I add a builder to a given project

OR check this post

Eclipse adding your own build command

Community
  • 1
  • 1
NoNaMe
  • 6,020
  • 30
  • 82
  • 110
0

I had the same problem when trying to compile a project. The solution was to go to "run configurations" and choose the right Runtime JRE.

Jasperan
  • 2,154
  • 1
  • 16
  • 40
Willy Makend
  • 137
  • 1
  • 8
0

Build your project using Project->Build Project in Eclipse .This will automatically adds build path to your project.

Viv
  • 71
  • 1
  • 2
0

I had to delete my maven .m2/repository folder and that made my build path reappear.

A Taylor
  • 153
  • 1
  • 1
  • 9
0

Make sure your project's root directory contains .classpath and .project file.

  1. The .classpath file should look like this -

enter image description here

  1. The .project file should look like this -

enter image description here

With these changes in place you should be able to see the proper folder structure as well as the "Build Path" option when you right-click the project.

Jasperan
  • 2,154
  • 1
  • 16
  • 40
0

If it was working fine previously and now its not, check whether you are in Enterprise tab or the Navigator tab, because if you're in the Navigator tab it won't work.

Jasperan
  • 2,154
  • 1
  • 16
  • 40