Getting Eclipse Neon running under Kubuntu (14.04 LTS)

Here I write about the pitfalls getting Eclipse Neon running

Black tooltips

First issue was an easy one. I fixed the behaviour as follows:

System Settings > Common Appearance and Behaviour > 
Application Appearance > Colours > Colour >
Tooltip Background > Tooltip Text

Choose a different color and click apply.

 

Eclipse crashes opening some dialogs and missing main menu 

Fixing this issues took me longer than I expected. Every time I launched Eclipse Marketplace the application crashed. And the missing main menu was very annoying.

I found out than the reason lies in a KDE bug.

Edit your eclipse.ini adding

--launcher.GTK_version 2

or set these variable, e.g. in your application launcher file

export SWT_GTK3=0

 

Further I edited the file „/usr/share/themes/oxygen-gtk/gtk-2.0/gtkrc“ and changed

GtkComboBox::appears-as-list = 1

into

GtkComboBox::appears-as-list = 0

 

Application Launcher file and Eclipse configugration

So my application launcher file and Eclipse configuration file looks like this.

~/local/share/applications/Eclipse-Neon.desktop

[Desktop Entry]
Name=Eclipse
Type=Application
Exec=SWT_GTK3=0 /home/xyz/eclipse/jee-neon/eclipse/eclipse -clean -vm /usr/lib/jvm/oracle-java8-jdk-amd64/bin/java
Terminal=false
Icon=/home/xyz/eclipse/jee-neon/eclipse/icon.xpm
Comment=Integrated Development Environment
NoDisplay=false
Categories=Development;IDE;Java;
Name[en]=Eclipse

eclipse.ini

-startup
plugins/org.eclipse.equinox.launcher_1.3.200.v20160318-1642.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.400.v20160518-1444
-product
org.eclipse.epp.package.jee.product
-showsplash
org.eclipse.platform
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.8
-XX:+UseG1GC
-XX:+UseStringDeduplication
-Xms256m
-Xmx1024m

Now, I am happy 😉

Links

http://askubuntu.com/a/258451
https://bugs.eclipse.org/bugs/show_bug.cgi?id=440660#c20
https://bugs.kde.org/show_bug.cgi?id=339174#c16
https://bugs.eclipse.org/bugs/show_bug.cgi?id=430736#c50