eclipse导入myeclipse的web项目没法辨认题目解决

1、进入项目目录,找到.project文件,打开。
2、找到<natures>…</natures>代码段。
3、在第2步的代码段中参加如下标签内容并保存:
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
4、项目目录下的.classpath文件,把所有Webroot字符串改为WebContent,保存。
5、把目录下webroot的文件夹改名为WebContent。
6、在eclipse中Java Resources:src目次的Libraries里添加web办事器须要的包,选择BiuldPath—–>configure Build Path——>当前窗面下选择选择Add Library—–>server Runtime——>选择须要的web容器
7、在eclipse的项目上点右键,刷新项目。
8、在项目上点右键,进入属性(properties)
9、在左侧列表项目中点击选择“Project Facets”,在右侧选择“Dynamic Web Module”和”Java”,点击保存即可。
这时应当可以在eclipse下正常启动项目了

猜你喜欢

转载自wuxw920.iteye.com/blog/1868046