在MyEclipse中将Java Project转换成Web Project
此添加方法是针对MyEclipse中添加的:
编辑工程的.project文件:
添加
<nature>com.genuitec.eclipse.ast.deploy.core.deploymentnature</nature>
<nature>com.genuitec.eclipse.j2eedt.core.webnature</nature>
到
<natures> … </natures>
eg.
例如将
<natures> <nature>org.eclipse.jdt.core.javanature</nature> </natures>
更改为:
<natures> <nature>com.genuitec.eclipse.ast.deploy.core.deploymentnature</nature> <nature>com.genuitec.eclipse.j2eedt.core.webnature</nature> <nature>org.eclipse.jdt.core.javanature</nature> </natures>
即可。
或是:
右击“项目”选择MyEclipse -> Add Web Project Capabilities...
提倡最后一种!!!