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"?>
<classpath>
<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"/>
</classpath>
Let me know if I need to provide any other information.
Thank you in advance
+3
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?
+3
source to share