Eclipse :: Indirectly links to required .class files

I am facing a strange problem. When I add some external JAR files to the classpath, I get the error "This is indirectly referring to the required .class files". But when I remove all of them I get rid of this error. Here re entries for .classpath

<?xml version="1.0" encoding="UTF-8"?>
    <classpathentry kind="src" path="bundle/src/main/java"/>
    <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
    <classpathentry kind="lib" path="C:/external_jars/cq-wcm-api-5.7.8.jar"/>
    <classpathentry kind="lib" path="C:/external_jars/cq-wcm-commons-5.7.8.jar"/>
    <classpathentry kind="lib" path="C:/external_jars/cq-wcm-core-5.7.116.jar"/>
    <classpathentry kind="output" path="bin"/>


Let me know if I need to provide any other information.

Thank you in advance


source to share

2 answers

This error means that you have some unresolved dependency, that is, one of these jar files depends on another jar file that you have not added to your classpath.

I believe this is a duplicate: Eclipse bug: indirectly referencing required .class files?



one of the classes you are using needs another class that is not in the classpath. Just add the required jar to your classpath. Also clear the work area. The name of the error message will be in the error message.



All Articles