Topless

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下正常启动项目了

分类:

技术点:

相关文章:

  • 2021-09-27
  • 2022-01-20
  • 2021-09-10
  • 2021-09-27
  • 2021-05-27
  • 2021-12-15
猜你喜欢
  • 2022-01-17
  • 2021-12-15
  • 2021-08-25
  • 2021-04-09
  • 2022-01-05
  • 2021-06-18
  • 2021-11-18
相关资源
相似解决方案