java.io.IOException: Cannot run program "bash" (in directory "C:\Users\selwyn.martin"): 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 JBoss Issue Tracker by Jebuselwyn Martin, 1 year ago
Cannot run program "bash" (in directory "C:\Users\selwyn.martin"): CreateProcess error=2, The system cannot find the file specified
via Stack Overflow by user1893769
, 1 year ago
Cannot run program "bash" (in directory "C:\Users\vp19433"): CreateProcess error=2, The system cannot find the file specified
via Google Groups by Sudhakarababu Koppolu, 5 months ago
Cannot run program "bash" (in directory "C:\Users\koppolu"): CreateProcess error=2, The system cannot find the file specified
via Google Groups by TY, 7 months ago
Cannot run program "bash" (in directory "C:\Users\TY"): CreateProcess error=2, The system cannot find the file specified
via Eclipse Bugzilla by eugene.petrenko, 1 year ago
Cannot run program "bash" (in directory "C:\Users\vmuser"): CreateProcess error=2, The system cannot find the file specified
via Google Groups by Unknown author, 1 year ago
Cannot run program "bash" (in directory "C:\Users\Admin"): CreateProcess error=2, The system cannot find the file specified
java.io.IOException: Cannot run program "bash" (in directory "C:\Users\selwyn.martin"): 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.InitCommand.call(InitCommand.java:113)
at org.uberfire.java.nio.fs.jgit.util.JGitUtil.newRepository(JGitUtil.java:104)
at org.uberfire.java.nio.fs.jgit.JGitFileSystemProvider.rescanForExistingRepositories(JGitFileSystemProvider.java:407)
at org.uberfire.java.nio.fs.jgit.JGitFileSystemProvider.(JGitFileSystemProvider.java:371)
at org.uberfire.java.nio.fs.jgit.JGitFileSystemProvider.(JGitFileSystemProvider.java:343)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
at java.lang.Class.newInstance(Class.java:442)
at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:380)
at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)
at java.util.ServiceLoader$1.next(ServiceLoader.java:480)
at org.uberfire.java.nio.file.api.FileSystemProviders.buildProviders(FileSystemProviders.java:65)
at org.uberfire.java.nio.file.api.FileSystemProviders.setup(FileSystemProviders.java:48)
at org.uberfire.java.nio.file.FileSystems.newFileSystem(FileSystems.java:117)
at org.uberfire.backend.server.cdi.SystemConfigProducer$2.create(SystemConfigProducer.java:252)
at org.uberfire.backend.server.cdi.SystemConfigProducer$2.create(SystemConfigProducer.java:187)

Users with the same issue

Once, 3 months ago
Once, 4 months ago
6 times, 1 year ago
4 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 month ago

Write tip

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