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.

  • 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.