Cannot run program "bash" (in directory "C:\test"): CreateProcess error=2,

Samebug tips3

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


If you're trying to make a splash screen, check this tutorial:


Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web1939

  • via Unknown by Unknown author,
  • via Stack Overflow by Revathi
  • via Unknown by Unknown author,
  • Stack trace

    • Cannot run program "bash" (in directory "C:\test"): CreateProcess error=2, at java.lang.ProcessBuilder.start(Unknown Source) at java.lang.Runtime.exec(Unknown Source) at org.eclipse.jgit.util.FS.readPipe( at org.eclipse.jgit.util.FS_Win32.discoverGitPrefix( at org.eclipse.jgit.util.FS.gitPrefix( at org.eclipse.jgit.util.SystemReader$Default.openSystemConfig( at<init>( at at

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    Qamer AliQamer Ali
    3 times, last one
    6 times, last one
    101 more bugmates