java.io.IOException: Cannot run program "bash" (in directory "C:\Users\IDEA"): 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

You might be using the wrong way to add commands to the command line. Try using commandDownloader.add("command");

,
Expert tip

If you're trying to make a splash screen, check this tutorial: https://goo.gl/zQyCYe

Solutions on the web

via jmonkeyengine.org by Unknown author, 1 year ago
Cannot run program "bash" (in directory "C:\Users\IDEA"): CreateProcess error=2, The system cannot find the file specified
via GitHub by RobMaskell
, 2 years ago
Cannot run program "bash" (in directory "K:\"): CreateProcess error=2, The system cannot find the file specified
via GitHub by rofehr
, 1 year ago
Cannot run program "bash" (in directory "C:\Users\roli"): CreateProcess error=2, Das System kann die angegebene Datei nicht finden
via GitHub by sschuberth
, 2 years ago
Cannot run program "bash" (in directory "C:\Users\sebastian"): CreateProcess error=2, The system cannot find the file specified
via GitHub by matyasatfp
, 1 year ago
Cannot run program "bash" (in directory "C:\Users\myAccount"): CreateProcess error=2, The system cannot find the file specified
via GitHub by OhadR
, 1 year ago
Cannot run program "bash" (in directory "C:\Users\OhadR"): CreateProcess error=2, The system cannot find the file specified**
java.io.IOException: Cannot run program "bash" (in directory "C:\Users\IDEA"): CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at java.lang.Runtime.exec(Runtime.java:620)
at org.eclipse.jgit.util.FS.readPipe(FS.java:431)
at org.eclipse.jgit.util.FS_Win32.discoverGitPrefix(FS_Win32.java:113)
at org.eclipse.jgit.util.FS.gitPrefix(FS.java:517)
at org.eclipse.jgit.util.SystemReader$Default.openSystemConfig(SystemReader.java:92)
at org.eclipse.jgit.internal.storage.file.FileRepository.(FileRepository.java:171)
at org.eclipse.jgit.lib.BaseRepositoryBuilder.build(BaseRepositoryBuilder.java:577)
at org.eclipse.jgit.api.Git.open(Git.java:113)
at org.eclipse.jgit.api.Git.open(Git.java:97)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
at org.ajoberstar.grgit.operation.OpenOp.call(OpenOp.groovy:84)
at org.ajoberstar.grgit.operation.OpenOp.call(OpenOp.groovy)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
at org.ajoberstar.grgit.util.OpSyntaxUtil.tryOp(OpSyntaxUtil.groovy:45)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324)
at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite.invoke(StaticMetaMethodSite.java:43)
at org.codehaus.groovy.runtime.callsite.StaticMetaMethodSite.call(StaticMetaMethodSite.java:88)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
at org.ajoberstar.grgit.Grgit.open(Grgit.groovy:230)
at org.ajoberstar.grgit.Grgit.open(Grgit.groovy)
at org.ajoberstar.grgit.Grgit$open.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 2 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

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