Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

java

eclipse

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

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.

like image 722
RuuddR Avatar asked Aug 11 '14 15:08

RuuddR


People also ask

Which is referenced by classpath does not exist?

jar which is referenced by the classpath, does not exist. This error comes if when the jar file is dislocated from the path you added to the class path.

What is the classpath in eclipse?

By default the {project}/src folder is the classpath folder. Save this answer.


2 Answers

Just an idea, not sure if it works:

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

then import the libs folder as class folder instead of the javazoom folder.

like image 146
Waog Avatar answered Sep 28 '22 22:09

Waog


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

like image 33
Surya Verma Avatar answered Sep 28 '22 23:09

Surya Verma