myeclise的项目导入eclipse项目报错Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/common

1.你会发现你导入之后是一个java项目

2.此时你要把java项目转为web项目。

3.在项目里新建一个webContent,把webRoot里面的东西复制到webConten里。

3、找到项目目录下的.project文件 


4、编辑.project文件,找到<natures>...</natures> 


5、在<natures>...</natures>里面添加(若有就不用)
<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> 


6、在eclipse刷新项目或重启eclipse 
7、选择项目,右键,选择属性 
10、在左侧列表中找到porperties->Project Facets,在右侧选择“Dynamic Web Module”和"Java",点击”OK”

猜你喜欢

转载自blog.csdn.net/weixin_42407721/article/details/87949805
今日推荐