5
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Ubuntu MATE 18.04でGitEyeが起動しないのを修正する

Posted at

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を適当なディレクトリに展開し、起動。
死ぬ。
Selection_008.png

ログを見る。

!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。

GitEye/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

CollabNet GitEye _009.png
無事起動。

5
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?