0

我已经为 tomcat 下载了最新版本的 Drool Workbench 6.3 战争文件。部署后同样会得到错误。

java.io.IOException: Cannot run program "bash" (in directory "C:\Users\vp19433"): CreateProcess error=2, The system cannot find the file specified
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
    at java.lang.Runtime.exec(Runtime.java:593)
    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.<init>(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.<init>(JGitFileSystemProvider.java:371)
    at org.uberfire.java.nio.fs.jgit.JGitFileSystemProvider.<init>(JGitFileSystemProvider.java:343)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at java.lang.Class.newInstance0(Class.java:355)
    at java.lang.Class.newInstance(Class.java:308)
    at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:356)

我知道 Jgit Jar 文件有问题。他们已经更改了代码,它将在没有 git 的情况下运行。

来源:https ://github.com/eclipse/jgit/commit/ec6ec3b10fb1ef8dd73a499d0b1f7a7d711b84dd

但是我从哪里获得更新的 jar,因此将替换为现有的并能够运行 Workbench。

4

1 回答 1

1

好吧,您可以从源代码自己构建它:

git clone git@github.com:eclipse/jgit.git
cd jgit
mvn clean package

或者您可以从 Maven Central 等 Maven 存储库获取 jar:http ://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.eclipse.jgit%22%20AND%20a%3A%22org .eclipse.jgit%22

希望能帮助到你,

于 2016-02-15T07:56:01.317 回答