Java development has one specific feature… To start the development you must set up and configure an environment. And often it isn’t a trivial task because you need to take care about plenty of things. So in the post I’m going to consider a very popular mistake in the setting up of Dynamic Web Project.

Let’s assume you create a new Dynamic Web Project in Eclipse or in some other IDE. You go through all steps and options. Finally you press the “Finish” button and as the result you get a new project in the IDE. After few a moments you understand that all you need to complete the preparation for the development is to transform your project to that maven one (right click on the project > Configure > Convert to Maven Project).

Now it’s time to find out what problems can occur. After all these actions your IDE can inform you about some error. The text of the error may say the following: “Java compiler level does not match the version of the installed Java project facet.”. This is a first signal indicating that during conversion of the project, its facet was changed and now it doesn’t suit the project.

Fixing of the problem doesn’t take much time. All you need is to open “Project’s Properties”, then open the “Project Facets” menu in the left navigation bar and change value of Java on 1.6 instead of 1.7. This solution should help you.

In the end I recommend you to read more about the Project facets.

About The Author

Mathematician, programmer, wrestler, last action hero... Java / Scala architect, trainer, entrepreneur, author of this blog