在Eclipse中构建现有动态Web项目时遇到问题

时间:2019-11-22 04:03:59

标签: java eclipse web web-deployment-project

我要在Eclipse中导入现有项目。我收到此错误,不知道如何解决。可能是因为JRE或JDK版本。我对此很陌生,所以我很失落。我正在寻找建议...

以下是显示的错误:

double a[4] = { 0, 0, 0, 0 };
double b[4] = { 0, 0, 0, 0 };
double w[8] = { 1, 0, 0, 0, 0, 0, 0, 0 };
int m = 3;
int l = 8;

fft(a, b, w, m, l);

这是类路径

.classpath

Java Build Path Problem

*Archive for required library: '.project' in project 'C***ch2' cannot be read or is not a valid ZIP file* screenshot of errors

.project

    <?xml version="1.0" encoding="UTF-8"?>
    <classpath>
    <classpathentry kind="src" path="src"/>
    <classpathentry exported="true" kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v7.0">
    <attributes>
        <attribute name="owner.project.facets" value="jst.web"/>
    </attributes>
    </classpathentry>
    <classpathentry exported="true" kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
   <classpathentry exported="true" kind="lib" path=".project"/>
   <classpathentry exported="true" kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
   <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.launching.macosx.MacOSXType/Java SE 11.0.1 [11.0.1]">
    <attributes>
        <attribute name="owner.project.facets" value="java"/>
    </attributes>
   </classpathentry>
 <classpathentry kind="output" path="build/classes"/>

1 个答案:

答案 0 :(得分:-1)

不要再问第二个问题。 Having a problem in building an existing java project in eclipse

该消息表明.project文件不是有效的库。它不是jar文件,也不是包含类文件的文件夹结构的目录。从项目的Java构建路径中删除该条目。