0
Windows-7システムにGerritコードレビューツールをインストールしたいと思います。 は、私は、以下の手順に従ったが、私はエラーウィンドウシステムにgerritをインストールできない
D:\PSI\Software>java -jar gerrit.war init -d D:\CIServer\programs\gerrit
Using secure store: com.google.gerrit.server.securestore.DefaultSecureStore
[2017-11-14 23:38:30,583] [main] INFO com.google.gerrit.server.config.GerritServerConfigProvider : No D:\CIServer\programs\gerrit\etc\gerrit.config; assuming defaults
*** Gerrit Code Review 2.14.5.1
***
Create 'D:\CIServer\programs\gerrit' [Y/n]? Y
*** Git Repositories
***
Location of Git repositories [git]:
*** SQL Database
***
Database server type [h2]: mysql
Gerrit Code Review is not shipped with MySQL Connector/J 5.1.41
** This library is required for your configuration. **
Download and install it now [Y/n]? Y
Downloading https://repo1.maven.org/maven2/mysql/mysql-connector-java/5.1.41/mysql-connector-java-5.1.41.jar ... OK
Checksum mysql-connector-java-5.1.41.jar OK
Server hostname [localhost]:
Server port [(mysql default)]:
Database name [reviewdb]:
Database username [indsaha]: gerrit
gerrit's password :
confirm password :
*** Index
***
Type [lucene/?]:
*** User Authentication
***
Authentication method [openid/?]:
Enable signed push support [y/N]?
*** Review Labels
***
Install Verified label [y/N]?
*** Email Delivery
***
SMTP server hostname [localhost]:
SMTP server port [(default)]:
SMTP encryption [none/?]:
SMTP username :
*** Container Process
***
Run as [indsaha]:
Java runtime [C:\Program Files\Java\jdk1.8.0_51\jre]:
Copy gerrit.war to D:\CIServer\programs\gerrit\bin\gerrit.war [Y/n]? Y
Copying gerrit.war to D:\CIServer\programs\gerrit\bin\gerrit.war
*** SSH Daemon
***
Listen on address [*]:
Listen on port [29418]:
Generating SSH host key ... rsa...Exception in thread "main" java.io.IOException: Cannot run program "ssh-keygen": CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at com.google.gerrit.pgm.init.InitSshd.generateSshHostKeys(InitSshd.java:115)
at com.google.gerrit.pgm.init.InitSshd.run(InitSshd.java:72)
at com.google.gerrit.pgm.init.SitePathInitializer.run(SitePathInitializer.java:93)
at com.google.gerrit.pgm.init.BaseInit.run(BaseInit.java:135)
at com.google.gerrit.pgm.util.AbstractProgram.main(AbstractProgram.java:61)
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 com.google.gerrit.launcher.GerritLauncher.invokeProgram(GerritLauncher.java:204)
at com.google.gerrit.launcher.GerritLauncher.mainImpl(GerritLauncher.java:108)
at com.google.gerrit.launcher.GerritLauncher.main(GerritLauncher.java:63)
at Main.main(Main.java:24)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:386)
at java.lang.ProcessImpl.start(ProcessImpl.java:137)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
... 13 more
D取得しています:\ PSIの\ソフトウェア> javaの-version Javaのバージョン "1.8.0_51" のJava(TM)SEランタイム環境(1.8.0_51-を構築しますB16) は、Java HotSpot(TM)64ビットサーバーVM(25.51-B03、混合モードを構築する) D:\ PSIの\ソフトウェア> javacの-version のjavac 1.8.0_51