First, import the program into Eclipse, deploy Jdk,tomcat, and so on libraries.
Second, modify the. project file in the project:
Add to:
<buildCommand>
<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
<arguments>
</arguments>
</buildCommand>
Modify:
<natures>
<nature>com.genuitec.eclipse.hibernate.hibernatenature</nature>
<nature>com.genuitec.eclipse.ast.deploy.core.deploymentnature</nature>
<nature>com.genuitec.eclipse.j2eedt.core.webnature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
</natures>
Refresh the Project project file again. Then, right-click Project-->properties--> Select Project Facets, tick dynamic Web module and Java, and tick tomcat in runtime.
Finally, go to the project directory and add the Org.eclipse.wst.common.component file under its. Settings directory, as follows:
<project-modules id= "Modulecoreid" project-version= "1.5.0" >
<wb-module deploy-name= "project name" >
<wb-resource deploy-path= "/" source-path= "/webroot" tag= "Defaultrootsource"/>
<wb-resource deploy-path= "/web-inf/classes" source-path= "/src"/>
<property name= "Context-root" value= "project name"/>
<property name= "Java-output-path" value= "/project name/build/classes"/>
</wb-module>
</project-modules>
This article is from the "Woodcutter's shoulder Pole" blog, please be sure to keep this source http://8582235.blog.51cto.com/8572235/1874591
Import myeclipse programs in Eclipse