[JAVA] Fixed GitEye not booting on Ubuntu MATE 18.04

Git's GUI client uses GitEye. Some difficulty in use is a matter of familiarity. It's Eclipse-based, so it has the advantage of being cross-platform, but it sometimes causes problems. This is also the case.

After installing Ubuntu MATE 18.04, download GitEye as well. This time I downloaded GitEye-2.1.0-linux.x86_64.zip.

Since java is also required, install default-jre with apt for the time being.

sudo apt install default-jre

The package that comes in is like ʻ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)

The one that comes in is like 10. Why is this happening?

Regain your mind, extract GitEye to an appropriate directory, and start it. die. Selection_008.png

View the log.

!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)
(Omitted below)

Googling with the name of Exception or 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

It's about Java 9, but it's the same error.

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
...

Do you mean to add this?

In the case of GitEye, the equivalent of eclipse.ini is 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 ← Add this line
-Xms128m
-Xmx512m
-XX:MaxPermSize=256m

CollabNet GitEye _009.png Start up safely.

Recommended Posts

Fixed GitEye not booting on Ubuntu MATE 18.04
tmux on Ubuntu
Screen recording on Ubuntu 20.04
Web Bluetooth on Ubuntu20.04
Try DisplayLink on Ubuntu 20.04
Reinstall Kubernetes on Ubuntu 19.10
Use Flutter on Ubuntu
Install pyqt5 on ubuntu
Install Ruby on Ubuntu 20.04
Setting JAVA_HOME on Ubuntu
Install Autoware on Ubuntu 18.04.5
Put JetBrains on Ubuntu
Use mkdir on ubuntu
Apache2 on Ubuntu20.04 LTS
Use cpplapack on ubuntu
ubuntu on wsl part 10
Install Homebrew on Ubuntu 20.04
Run tiscamera on Ubuntu 18.04
Build Zabbix on Ubuntu 20.04
Install Ubuntu MATE 20.04 LTS on older MacBook Early 2008 (MB402 * / A, MB403 * / A, MB404 * / A)
Wifi adapter not recognized on Ubuntu with Windows dual boot
Build mate desktop environment on ec2 with terraform (Ubuntu 20.04LTS)