Eclipse Open declaration in Java project

Taegug picture Taegug · Jan 8, 2013 · Viewed 64.3k times · Source

In an Eclipse SVN project I have a problem; when I tried to open a declaration of one class, I got this error:

Problems opening an editor Reason : projectname does not exist.

Also refactoring does not work.

I have searched the web and tried all found solutions but nothing helped. I have downloaded different Eclipse and Java versions and switched to a clean workspace but I still have the problem.

How can I solve my problem or which solution can I try?

Answer

Jay picture Jay · Oct 30, 2014

Right Click on the project -> Properties -> Project Facets -> Click on the Configuration Link -> Click on Apply Button -> Click on OK button.

The above steps should set your project as a Java project.