java.lang.NoClassDefFoundError: Could not initialize class jenkins.model.Jenkins

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

org.apache.http.config.Lookup class is in httpcore-4.3.jar not in httpclient-4.3.1.jar

Solutions on the web

via Jenkins JIRA by Oliver Gondža, 1 year ago
Could not initialize class jenkins.model.Jenkins
via Google Groups by ogo...@gmail.com (JIRA), 1 year ago
Could not initialize class jenkins.model.Jenkins<br>
via Stack Overflow by sangeetha sivakumar
, 15 hours ago
Could not initialize class org.apache.calcite.jdbc.Driver
via Stack Overflow by Prince
, 2 years ago
Could not initialize class sun.awt.X11.XToolkit
via GitHub by guylevin
, 1 year ago
Could not initialize class org.bytedeco.javacpp.avutil
via Google Groups by Sandell, Robert, 5 months ago
Could not initialize class org.jenkinsci.plugins.gitclient.GitClient
java.lang.NoClassDefFoundError: Could not initialize class jenkins.model.Jenkins
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:191)
at undefined.Script1.class$(Script1.groovy)
at undefined.Script1.$get$$class$jenkins$model$Jenkins(Script1.groovy)
at undefined.Script1.run(Script1.groovy:1)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:580)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:618)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:589)
at hudson.util.RemotingDiagnostics$Script.call(RemotingDiagnostics.java:142)
at hudson.util.RemotingDiagnostics$Script.call(RemotingDiagnostics.java:114)
at hudson.remoting.UserRequest.perform(UserRequest.java:121)
at hudson.remoting.UserRequest.perform(UserRequest.java:49)
at hudson.remoting.Request$2.run(Request.java:326)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

6 times, 7 months ago
2 times, 8 months ago
60 times, 1 year ago
3 times, 1 year ago
3 times, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.