Eclipse Tip: Adding Java nature to an existing Eclipse Project

If you ever create a general (or any other type ) eclipse project and need to add Java nature to the project. Do the following:

  1. Shutdown your eclipse.
  2. Open the .project file (available in the root of your project folder) in your favorite editor¬† and search for ‘<natures>‘¬† tag.
  3. Insert the following ‘<nature>org.eclipse.jdt.core.javanature</nature>‘ in between <natures>….</natures> tags.
  4. Save and close the .project file.
  5. Start up your eclipse and now your project should be a Java enabled project.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.