Recently to upgrade their Ubuntu from 14.04LTS to 16.04LTS, suddenly found that eclipse does not work properly, to the official website of Ubuntu turned around to find the following solutions:
Symptoms:
[1] Eclipse startup is slow;
[2] Eclipse Menu does not eject
[3] Eclipse is running super slow
Eclipse Version: Mars
Ubuntu version 16.04LTS
Workaround:
1) in console, change the environment variableSWT_GTK3
Export swt_gtk3=0
2) Try to start Eclipse in the console using the command line. Note that please do not add any parameters.
CD <<eclipseHomepath>>
./eclipse
3) If the previous step succeeds and the eclipse work is back to normal, the following method is valid for you. If the problem is not resolved ..... Please take a detour ....
4) Close Eclipse and modify the configuration file Eclipse.ini.
Locate the --launcher.appendvmargs line and insert the following settings in front of it:
--launcher. Gtk_version2
5) Save, solve the problem.
This way, there will be no more problems when you start eclipse again from the desktop icon.
Posted in English here: http://askubuntu.com/questions/761604/eclipse-not-working-in-16-04
Original Workaround for Eclipse Mars not working after Ubuntu upgrade