I am facing a weird issue. When I add some external JARs to the classpath I get the error "It is indirectly referenced from required .class files". But when I remove all of them I get rid of this error. Here re the 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>
Do let me know if I need to provide any other info.
Thanks in advance
That error means you have some unresolved dependency, i.e. one of those jar files depends on some other jar file that you have not added to your classpath.
I believe this is a duplicate of: Eclipse error: indirectly referenced from required .class files?
one of the class that you use needs another class which is not in classpath.Just add the required jar to the classpath.Also clean the workspace.Missing file's name will be in the error message.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With