Convert a generic project to a java project

If you created a generic project in Eclipse and would like to turn it into a java project you have to modify the .project file. This is the content of the generic project:

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
	<name>de.slopjong.emf.forum</name>
	
	<projects>
	</projects>
	<buildSpec>
	</buildSpec>
	<natures>
	</natures>
</projectDescription>

You have to modify the sections buildSpec and natures.

<buildSpec>
	<buildCommand>
		<name>org.eclipse.jdt.core.javabuilder</name>
	</buildCommand>
</buildSpec>
	<natures>
		<nature>org.eclipse.jdt.core.javanature</nature>
	</natures>

You should then refresh the package explorer to let the changes take effect.

DeliciousDiggTechnorati FavoritesRedditLinkedInFacebookSpurlTwitterWebnewsYiGGMySpaceYahoo BookmarksFriendFeedGoogle BookmarksLiveJournalShare

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>