RuuddR
RuuddR

Reputation: 941

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

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.png http://i.imgur.com/WZxgGXF.png http://i.imgur.com/4tt6XJl.png http://i.imgur.com/LQEEsHA.png http://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.

Upvotes: 5

Views: 22431

Answers (3)

Vikas Piprade
Vikas Piprade

Reputation: 352

I reproduced this problem -

enter image description here

Resolution :-

As stated in error "The archive: /AutomationPrj/src/test/resources/resources which is referenced by the classpath, does not exist."

In my project /AutomationPrj/src/test/resources**/resources** indeed does not exists. I created resources folder [empty] at appropriate location and issue is resolved.

enter image description here

Upvotes: 1

Surya Verma
Surya Verma

Reputation: 61

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.

Upvotes: 1

Waog
Waog

Reputation: 7245

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.

Upvotes: 5

Related Questions