
如图所示 当导入java的web项目时,报这样的错
此项目原本为intellij idea 创建 我在根目录下创建了.project、.classpath、.mymetadata文件 并在根目录下创建了.settings文件夹 并在内部创建了 6个文件 分别为org.eclipse.core.resources.prefs、org.eclipse.jdt.core.prefs、org.eclipse.wst.common、org.eclipse.wst.common.project.facet.core、org.eclipse.wst.jsdt.ui.superType.container、org.eclipse.wst.jsdt.ui.superType
其代码如下:
.project文件:
<span style="color:#888888;"><?xml version="1.0″ encoding="UTF-8″?>
<projectDescription>
</span><span style="color:#ff0000;"><name>Gcimes</name></span><span style="color:#888888;">
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.wst.common.project.facet.core.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.genuitec.eclipse.j2eedt.core.WebClasspathBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.genuitec.eclipse.j2eedt.core.J2EEProjectValidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.genuitec.eclipse.j2eedt.core.DeploymentDescriptorValidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>com.genuitec.eclipse.ast.deploy.core.DeploymentBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>com.genuitec.eclipse.ast.deploy.core.deploymentnature</nature>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>com.genuitec.eclipse.j2eedt.core.webnature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
</natures>
</projectDescription></span>
.classpath文件:
<span style="color:#888888;"><?xml version="1.0″ encoding="UTF-8″?>
<classpath>
</span><span style="color:#ff0000;"><classpathentry kind="src" path="web/src"/></span><span style="color:#888888;">
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="melibrary.com.genuitec.eclipse.j2eedt.core.MYECLIPSE_JAVAEE_6_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
</span><span style="color:#ff0000;"><classpathentry kind="output" path="out/artifacts/Gciems/WEB-INF/classes"/></span><span style="color:#888888;">
</classpath></span>
.mymetadata文件:
<span style="color:#888888;"><?xml version="1.0″ encoding="UTF-8″?>
<project-module
</span><span style="color:#ff0000;"> type="WEB"</span><span style="color:#888888;">
</span><span style="color:#ff0000;"> name="Gcimes"</span><span style="color:#888888;">
id="myeclipse.1407308101935″
</span><span style="color:#ff0000;"> context-root="/Test"</span><span style="color:#888888;">
j2ee-spec="6.0″
</span><span style="color:#ff0000;"> archive="Gcimes.war"></span><span style="color:#888888;">
<attributes>
</span><span style="color:#ff0000;"> <attribute name="webrootdir" value="web" /></span><span style="color:#888888;">
</attributes>
</project-module></span>
org.eclipse.core.resources.prefs文件
#Wed Aug 06 15:01:06 CST 2014
eclipse.preferences.version=1
encoding/<project>=UTF-8
org.eclipse.jdt.core.prefs文件:
#Wed Aug 06 14:55:08 CST 2014
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
org.eclipse.jdt.core.compiler.compliance=1.6
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.6
org.eclipse.wst.common文件:
<span style="color:#888888;"><?xml version="1.0" encoding="UTF-8"?>
<project-modules id="moduleCoreId" project-version="1.5.0">
</span><span style="color:#ff0000;"><wb-module deploy-name="Gcimes"></span><span style="color:#888888;">
</span><span style="color:#ff0000;"><wb-resource deploy-path="/" source-path="/web"/></span><span style="color:#888888;">
</span><span style="color:#ff0000;"><wb-resource deploy-path="out/artifacts/Gciems/WEB-INF/classes" source-path="web/src"/></span><span style="color:#888888;">
</span><span style="color:#ff0000;"> <property name="context-root" value="/Gcimes"/></span><span style="color:#888888;">
</span><span style="color:#ff0000;"><property name="java-output-path" value="/Gcimes/web/WEB-INF/classes"/></span><span style="color:#888888;">
</wb-module>
</project-modules></span>
org.eclipse.wst.common.project.facet.core文件:
<?xml version="1.0" encoding="UTF-8" ?>
<faceted-project>
<fixed facet="wst.jsdt.web" />
<installed facet="java" version="1.6" />
<installed facet="jst.web" version="3.0" />
<installed facet="wst.jsdt.web" version="1.0" />
</faceted-project>
org.eclipse.wst.jsdt.ui.superType.container、org.eclipse.wst.jsdt.ui.superType均为空文件
文件夹路径如下:

项目名称为:Gcimes
求大神帮忙解决