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

1

22

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)?

Barkeeper answered 10/7, 2012 at 8:39 Comment(1)
There is a Janino entry in the FAQ: logback.qos.ch/setup.html#janinoObjectionable
C
33

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.

Claudetteclaudia answered 9/4, 2013 at 19:18 Comment(2)
Whole addition of dependencies can be misleading and is usually considered a bad idea. I would remove everything after "For for a more complete dependency list, try.." in the above answer.Walls
Worked for me as I accidently missed it out in gradle.Wellhead

© 2022 - 2024 — McMap. All rights reserved.