Myeclipse中项目src变成文件夹

因为JavaWeb项目中的根目录少了一个.classpath文件,导致MyEclipse不能识别目录。

参考:http://zhidao.baidu.com/question/418308062

.classpath内容如下:

<?xml version="1.0" encoding="UTF-8"?>
<classpath>
 <classpathentry kind="src" path="src"/>
 <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
 <classpathentry kind="con" path="com.genuitec.eclipse.j2eedt.core.J2EE14_CONTAINER"/>
 <classpathentry kind="output" path="WebRoot/WEB-INF/classes"/>
</classpath>

 

 

解决方案,随便新建一个web项目,在项目中找到.classpath文件,复制到你的项目即可。

posted @ 2017-07-28 14:06  小闲石  阅读(300)  评论(0编辑  收藏  举报