java.lang.NoClassDefFoundError: Could not initialize class hudson.util.ProcessTree$UnixReflection

I am having this problem when trying to build my project with Jenkins:
java.lang.NoClassDefFoundError: Could not initialize class hudson.util.ProcessTree$UnixReflection.

java.lang.NoClassDefFoundError: Could not initialize class hudson.util.ProcessTree$UnixReflection
at hudson.util.ProcessTree$Unix.get(ProcessTree.java:506)
at hudson.util.ProcessTree.killAll(ProcessTree.java:144)
at hudson.Proc$LocalProc.destroy(Proc.java:380)
at hudson.Proc$LocalProc.join(Proc.java:353)
at hudson.tasks.CommandInterpreter.join(CommandInterpreter.java:155)
at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:109)
at hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:66)
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
at hudson.model.Build$BuildExecution.build(Build.java:206)
at hudson.model.Build$BuildExecution.doRun(Build.java:163)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
at hudson.model.Run.execute(Run.java:1728)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:405)

I have tried to downgrade from JAVA JDK 1.8 to 1.7 but still not resolving the problem.

  • How to list locally-modified/unversioned files using svnkit?
  • How can I run FEST Swing tests in Jenkins?
  • How to add eclipse project to existing git repo?
  • How do you handle different Java IDEs and svn?
  • Maven run class before test phase: exec-maven-plugin exec:java not executing class
  • Calling SVN commands from a java program
  • This is a JavaScript project, the test are passing but build failed because of that error.

    Could you help me?

  • Best Repository Management for Maven
  • Jenkins Groovy post build plugin multi line regex on console log
  • Selenium WebDriver with Jenkins
  • Jenkins cron format
  • Jenkins/Git: Build latest from branches + manual build from any commit
  • Execute Shell Script after post build in Jenkins
  • Git Baby is a git and github fan, let's start git clone.