If you ever create a general (or any other type ) eclipse project and need to add Java nature to the project. Do the following:
- Shutdown your eclipse.
- Open the .project file (available in the root of your project folder) in your favorite editor and search for ‘<natures>‘ tag.
- Insert the following ‘<nature>org.eclipse.jdt.core.javanature</nature>‘ in between <natures>….</natures> tags.
- Save and close the .project file.
- Start up your eclipse and now your project should be a Java enabled project.