java.io.IOException: Cannot run program "/usr/java/jdk1.8.0_25/jre/bin/java": CreateProcess error=2, The system cannot find the file specified

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

This is a bug in some versions of the Arduino IDE. Try updating to the version 1.6.12 or further.

Solutions on the web

via Jenkins JIRA by Bharath Natarajan, 1 year ago
Cannot run program "/usr/java/jdk1.8.0_25/jre/bin/java": CreateProcess error=2, The system cannot find the file specified
via GitHub by ykachube
, 1 year ago
Cannot run program "/local/services/apache-tomcat-6.0.41/bin/e:/jenkins_slave1/tools/ru.yandex.qatools.allure.jenkins.tools.AllureCommandlineInstallation/grid/bin/allure.bat" (in directory "e:\jenkins_slave1\workspace\HB-single-tests-Allure"): CreateProcess error=2, The system cannot find the file specified
via Jenkins JIRA by James Hancox, 1 year ago
Cannot run program "sh" (in directory "D:\projects\tools\com.cloudbees.jenkins.plugins.customtools.CustomTool\VxrAnt"): CreateProcess error=2, The system cannot find the file specified
via Jenkins JIRA by James Hancox, 1 year ago
Cannot run program "sh" (in directory "D:\projects\tools\com.cloudbees.jenkins.plugins.customtools.CustomTool\VxrAnt"): CreateProcess error=2, The system cannot find the file specified
via Stack Overflow by Nash
, 1 year ago
Cannot run program "powershell.exe" (in directory "C:\jenkins\workspace\own-machine-powershell-job"): CreateProcess error=2, The system cannot find the file specified
via jenkins-ci.org by Unknown author, 2 years ago
Cannot run program "sh" (in directory "D:\projects\tools\com.cloudbees.jenkins.plugins.customtools.CustomTool\VxrAnt"): CreateProcess error=2, The system cannot find the file specified
java.io.IOException: Cannot run program "/usr/java/jdk1.8.0_25/jre/bin/java": CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(Unknown Source)
at hudson.Proc$LocalProc.(Proc.java:244)
at hudson.Proc$LocalProc.(Proc.java:216)
at hudson.Launcher$LocalLauncher.launch(Launcher.java:815)
at hudson.Launcher$ProcStarter.start(Launcher.java:381)
at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1148)
at hudson.remoting.UserRequest.perform(UserRequest.java:120)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:326)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at hudson.remoting.Engine$1$1.run(Engine.java:62)
at java.lang.Thread.run(Unknown Source)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 8 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
140 more bugmates

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