简体   繁体   中英

Java Error Caused by: java.lang.ClassNotFoundException: com.codahale.metrics.JmxReporter

I am running Java Spring Boot and receiving this error. How can it be resolved? We see it during runtime. I tried searching github and google, didn't see any resolutions.

Caused by: java.lang.ClassNotFoundException: com.codahale.metrics.JmxReporter
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

Are you using maven or gradle? Probably your project is missing a dependency. Probably this one https://mvnrepository.com/artifact/com.codahale.metrics/metrics-core

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM