Changing project type form general to java in eclipse

You have a project, which is basically a java project but during checking out the project or creating a new project, you didn’t selected type of project as java. You are stuck now as there is no option to change it to java type in eclipse UI.
You can change type of project by modifying.projectfile, located in the root directory of your project. Open .project file in any text editor and search for text “natures”. You’ll see an empty natures node.

<natures>
</natures>

Change this value to

<natures>
        <nature>org.eclipse.jdt.core.javanature</nature>
</natures>

Related Post

Start tomcat6 (installed as a windows service) debug mode using eclipse remote debugging
Installing eclipse in ubuntu/linux
What is an interface?
Changing root user password in mysql
What is mutex?

Comments

Leave a Reply