red6 / pdfcompare

A simple Java library to compare two PDF files
Apache License 2.0
220 stars 66 forks source link

SLF4J Errors #26

Closed chisasaw closed 6 years ago

chisasaw commented 6 years ago

I am using the pdfcompare library to compare two pdf documents. However, I got the following error: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". I included the slf4j api to my class path when compiling and running my code but I am still getting the same error. How can this be resolved?

finsterwalder commented 6 years ago

The class in question is not part of the slf4j api, but of the logback-classic logging backend. It should be pulled as a transitive dependency. Do you use maven to build your project?

I have the following dependencies in my project:

    <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-api</artifactId>
        <version>1.7.25</version>
    </dependency>
    <dependency>
        <groupId>ch.qos.logback</groupId>
        <artifactId>logback-classic</artifactId>
        <version>1.2.3</version>
    </dependency>
chisasaw commented 6 years ago

Thank you. I resolved the error.