Thursday, February 21, 2013

Eclipse this compilation is not on the build path of a java project

This may happen when the project is not recognized as a java project, making the intellisense not working.

My specs are as follow:

  • maven 3.0.x
  • JDK 1.7
  • SpringMVC


What you can do is to make eclipse to know it's a Java project.

Left click on your project in eclipse.
Click Project -> Properties.
Click on Project Facets, select Java.

If the above does not solve your problem, check this post - Eclipse "this compilation unit is not on the build path of a java project".

1 comment:

  1. What a fantabulous post this has been. Never seen this kind of useful post. I am grateful to you and expect more number of posts like these. Thank you very much.
    Minecraft Server List

    ReplyDelete