eclipse 蚀。类路径引用的存档不存在

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/25247160/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 21:52:41  来源:igfitidea点击:

Eclipse. The archive which is referenced by the classpath, does not exist

javaeclipse

提问by RuuddR

in eclipse I get this error when I run my program: The archive which is referenced by the classpath, does not exist. I got another program which look exactly the same but there is it working. Here are some screenshots: http://i.imgur.com/ISMI0UX.pnghttp://i.imgur.com/WZxgGXF.pnghttp://i.imgur.com/4tt6XJl.pnghttp://i.imgur.com/LQEEsHA.pnghttp://i.imgur.com/E2Dm2Qp.png

在 Eclipse 中,当我运行我的程序时出现此错误:类路径引用的存档不存在。我得到了另一个看起来完全相同的程序,但它正在运行。以下是一些截图: http://i.imgur.com/ISMI0UX.pnghttp://i.imgur.com/WZxgGXF.pnghttp://i.imgur.com/4tt6XJl.pnghttp://i.imgur.com/LQEEsHA.pnghttp://i.imgur.com/E2Dm2Qp.png

Here are the codes from the classpath files. Not working one:

以下是类路径文件中的代码。不工作:

<?xml version="1.0" encoding="UTF-8"?>
<classpath>
    <classpathentry kind="src" path="src"/>
    <classpathentry kind="lib" path="javazoom"/>
    <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jre7"/>
    <classpathentry kind="output" path="bin"/>
</classpath>

Working one:

工作一:

<?xml version="1.0" encoding="UTF-8"?>
<classpath>
    <classpathentry excluding="javazoom/" kind="src" path=""/>
    <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
    <classpathentry kind="lib" path="javazoom"/>
    <classpathentry kind="output" path=""/>
</classpath>

it's about the javazoom thing. in javazoom there are only classes and no java files so I can not edit them.

这是关于 javazoom 的事情。在 javazoom 中只有类而没有 java 文件,所以我无法编辑它们。

采纳答案by Waog

Just an idea, not sure if it works:

只是一个想法,不确定它是否有效:

move the javazoom folder one folder down: PROJECT\libs\javazoominstead of PROJECT\javazoom.

将 javazoom 文件夹下移一个文件夹: PROJECT\libs\javazoom而不是PROJECT\javazoom.

then import the libsfolder as class folder instead of the javazoomfolder.

然后将libs文件夹导入为类文件夹而不是javazoom文件夹。

回答by Surya Verma

Just check if the workspace name of the eclipse and the projectNameis not same i.e "WeLive4Money". I faced similar kind of issue and it got resolved when I changed my project name.

只需检查日食的工作区名称projectName是否与“WeLive4Money”不同。我遇到了类似的问题,当我更改项目名称时它得到了解决。