GitのGUIクライアントはGitEyeを使っている。
若干の使いづらさは慣れの問題。
Eclipseベースなのでクロスプラットフォームという利点はあれど、それに起因する問題は時々起きる。
これもそう。
Ubuntu MATE 18.04インストール後、GitEyeもダウンロード。
今回ダウンロードしたのはGitEye-2.1.0-linux.x86_64.zip
だった。
javaも必要なのでとりあえずdefault-jre
をaptでインストール。
sudo apt install default-jre
入るパッケージはopenjdk-11-jre
っぽい。
11?
$ java --version
openjdk 10.0.1 2018-04-17
OpenJDK Runtime Environment (build 10.0.1+10-Ubuntu-3ubuntu1)
OpenJDK 64-Bit Server VM (build 10.0.1+10-Ubuntu-3ubuntu1, mixed mode)
入ったもの自体は10っぽい。なぜこんなことに。
気を取り直して、GitEyeを適当なディレクトリに展開し、起動。
死ぬ。
ログを見る。
!SESSION 2018-04-29 18:40:11.604 -----------------------------------------------
eclipse.buildId=unknown
java.version=10.0.1
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86_64 -data @user.home/.giteye
!ENTRY org.eclipse.osgi 4 0 2018-04-29 18:40:16.713
!MESSAGE Application error
!STACK 1
org.eclipse.e4.core.di.InjectionException: java.lang.NoClassDefFoundError: javax/annotation/PostConstruct
at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:410)
at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:318)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:162)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createDefaultHeadlessContext(E4Application.java:491)
(以下略)
ExceptionやErrorの名前でググる。
Bug 524629 - Fresh install of eclipse can't get it to work with Java 9
https://bugs.eclipse.org/bugs/show_bug.cgi?id=524629
Java9の話だが同じエラーだ。
See https://waynebeaton.wordpress.com/2017/09/25/running-eclipse-ide-on-java-9/
you need to adjust the -vmargs
Running Eclipse IDE on Java 9
https://waynebeaton.wordpress.com/2017/09/25/running-eclipse-ide-on-java-9/
...
-vmargs
--add-modules=ALL-SYSTEM
...
これを書き足せということか。
GitEyeの場合eclipse.iniに相当するのは、GitEye.ini。
-startup
plugins/org.eclipse.equinox.launcher_1.4.0.v20161219-1356.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.551.v20171108-1834
-data
@user.home/.giteye
-vmargs
--add-modules=ALL-SYSTEM ←この行を追加
-Xms128m
-Xmx512m
-XX:MaxPermSize=256m