Converting a general project to a Java project in Eclipse IDE

If you are not using Eclipse EE then to change a project from a general project to a Java one you will need to edit the project's .project file. This file is located in the root directory of the project.

Before editing the file first close the project or shutdown Eclipse, next open up the .project file in your text editor, it may look like this: