java.io.IOException: Cannot run program "git.cmd": CreateProcess error=2, Не удается найти указанный файл

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

,

Provide a working directory instead of pointing it to a file or an empty directory in process builder.

,
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 YouTrack by Unknown author, 1 year ago
Cannot run program "git.cmd": CreateProcess error=2, Не удается найти указанный файл
via Stack Overflow by Gogo Nono
, 3 months ago
Cannot run program "D:\download\IntelliJ IDEA Community Edition 2017.2.4\jre64\bin\java.exe": CreateProcess error=2, The system cannot find the file specified
via Google Groups by Munira Presswala, 1 year ago
Cannot run program "git.exe" (in directory "C:\Program Files (x86)\Jenkins\BWorkspace"): CreateProcess error=2, The system cannot find the file specified
via YouTrack by Unknown author, 2 years ago
Cannot run program "p4" (in directory "C:\Users\ariel\Documents\vranz\mqw"): CreateProcess error=2, The system cannot find the file specified
via Stack Overflow by nexDev
, 2 years ago
Cannot run program "C:\Program Files\Java\jdk1.8.0_05\bin\java" (in directory "C:\Users\magic\.AndroidStudioBeta\system\compile-server"): CreateProcess error=2, The system cannot find the file specified
via GitHub by agross
, 2 years ago
Cannot run program "bundle" (in directory "C:/somewhere"): CreateProcess error=2, The system cannot find the file specified
java.io.IOException: CreateProcess error=2, Не удается найти указанный файл
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.(ProcessImpl.java:386)
at java.lang.ProcessImpl.start(ProcessImpl.java:137)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
at com.intellij.execution.configurations.GeneralCommandLine.startProcess(GeneralCommandLine.java:368)
at com.intellij.execution.process.OSProcessHandler.(OSProcessHandler.java:37)
at com.intellij.execution.process.CapturingProcessHandler.(CapturingProcessHandler.java:38)
at git4idea.config.GitExecutableDetector.runs(GitExecutableDetector.java:221)
at git4idea.config.GitExecutableDetector.checkSoleExecutable(GitExecutableDetector.java:173)
at git4idea.config.GitExecutableDetector.detectForWindows(GitExecutableDetector.java:95)
at git4idea.config.GitExecutableDetector.detect(GitExecutableDetector.java:62)
at git4idea.GitVcs.checkExecutableAndVersion(GitVcs.java:312)
at git4idea.GitVcs.activate(GitVcs.java:289)
at com.intellij.openapi.vcs.StartedActivated$3.run(StartedActivated.java:53)
at com.intellij.openapi.vcs.StartedActivated.callImpl(StartedActivated.java:99)
at com.intellij.openapi.vcs.StartedActivated.doActivate(StartedActivated.java:112)
at com.intellij.openapi.vcs.impl.projectlevelman.NewMappings$MyVcsActivator.activate(NewMappings.java:514)
at com.intellij.openapi.vcs.impl.projectlevelman.NewMappings.a(NewMappings.java:175)
at com.intellij.openapi.vcs.impl.projectlevelman.NewMappings.activateActiveVcses(NewMappings.java:126)
at com.intellij.openapi.vcs.impl.projectlevelman.NewMappings$2.run(NewMappings.java:95)
at com.intellij.openapi.vcs.impl.VcsInitialization.execute(VcsInitialization.java:87)
at com.intellij.openapi.vcs.impl.VcsInitialization$1$1.run(VcsInitialization.java:52)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

Once, 1 month ago
Once, 3 months ago
3 times, 6 months ago
Once, 1 year ago
5 times, 1 year ago

Write tip

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