Thursday, March 10, 2011

Convert Java Project to Web Project in Eclipse


1) Create a empty dynamic web project and click on the .project file
2) Copy “web project” facet buildCommand and paste within “java project” .project buildSpec tag


org.eclipse.wst.common.project.facet.core.builder



3)Copy “web project” facet nature and paste within “java project” .project natures tag

org.eclipse.wst.common.project.facet.core.nature

P.S Be careful of the .project xml tag, make sure you paste into a correct location.

4) Save it.

5) Right click on Java Project, click properties.

6) Select Project Facets and click modify project button.

7) Click Dynamic Web Module and Java check box.

No comments: