Search code examples
logbackjanino

Logback: "Could not find Janino library on the class path"


I'm getting error message Could not find Janino library on the class path. Skipping conditional processing. What should I incude in classpath to fix this (lib and version)?


Solution

  • Logback requires the Janino library for conditional logging. You don't need it if you aren't using the structures in your config files.

    If you are using conditionals, you will need to add the Janino dependency. You can add this to your pom.xml file to get the dependency:

        <!-- The org.codehaus.janino:commons-compiler:2.6.1 dependency -->
        <!-- will be automatically pulled in by Maven's transitivity rules -->
        <dependency>
            <groupId>org.codehaus.janino</groupId>
            <artifactId>janino</artifactId>
            <version>2.6.1</version>
        </dependency>
    

    I believe this question is a duplicate of this one.