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(
at hudson.util.ProcessTree.killAll(
at hudson.Proc$LocalProc.destroy(
at hudson.Proc$LocalProc.join(
at hudson.tasks.CommandInterpreter.join(
at hudson.tasks.CommandInterpreter.perform(
at hudson.tasks.CommandInterpreter.perform(
at hudson.tasks.BuildStepMonitor$1.perform(
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(
at hudson.model.Build$
at hudson.model.Build$BuildExecution.doRun(
at hudson.model.AbstractBuild$
at hudson.model.Run.execute(
at hudson.model.ResourceController.execute(

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

  • git clone does not work in java
  • Can I use a GitHub project directly in Maven?
  • Switching branches with IntelliJ & Git
  • Need to create Java JAR file and add it to Maven Dependency
  • How to use a Git repository as an exploded war?
  • Controlling Which GIT Branch is Deployed to AWS ElasticBeanstalk via Eclipse Plugin
  • This is a JavaScript project, the test are passing but build failed because of that error.

    Could you help me?

  • Jenkins fails during parsing poms
  • Git : 'Binary Files Differ.' How to solve this issue in gitHub?
  • Creating proper build or deployment chain with Microservices, Docker, Jenkins and GIT
  • Could not create Android emulator: Failed to parse AVD config file
  • How to integrate soapUI with jenkins / hudson?
  • How to force Jenkins to rebuild a branch?
  • Git Baby is a git and github fan, let's start git clone.