It seems that SWT (eclipse based) applications in Xenial (16.04) are mostly broken with default-jdk (ie openjdk 8). This includes Eclipse IDE, Gantproject, etc...
They either won't load, or won't work as expected (never ending operations, ...). This is related to the fact that SWT integrates badly with GTK3, and especialy the latest version that ships with Xenial (look for SWT GTK3 in Google for tons of problems and blogs related to the issue).
Most of the time, export SWT_GTK3=0
works around the issue (it falls back to GTK2).
So here is my question: what is the best way to handle this problem for Xenial ?
- set
SWT_GTK3=0
globally for the system (then how is it best done,/etc/bash.bashrc
,/etc/environment
, ???) ? - report the problem to Ubuntu to get it solved before the release ? Then, what are the relevant packages ? (default-jdk, swt-gtk, ???) Notice a bug report already exists on the subject: https://bugs.launchpad.net/ubuntu/+source/swt-gtk/+bug/1552764, which I edited to make it more generic and not eclipse IDE only
- any other option ?
readlink -f /usr/bin/java
say? – Olathe Mar 29 '16 at 09:29