Skip to content
Advertisement

Tag: classloader

java.lang.ClassNotFoundException with log4j

I am trying my first project with gradle. My project has a dependency with log4j-1.2.17.jar After my project is built, a jar file is generated. I try to run this with the following: But if I build a fatjar with gradle, the fatjar works without specifying any classpath. The dependency statement in gradle is like: Answer Yes, AbtPst is correct.

Advertisement