Eclipse not working in 16.04
I had something the same with 16.04 and Eclipse Mars. I thought it had frozen but in fact it was running very, very slowly. The problem is the version of GTK+ 3, shipped with 16.04. Fortunately the solution is very easy. Open a terminal and then type export SWT_GTK3=0
, then start Eclipse from the terminal. If that works, then a more persistent fix is to put the 2 lines below, as they appear in your eclipse.ini
:
--launcher.GTK_version
2
before the line:
--launcher.appendVmargs
The bug is filed with Ubuntu at bug 1552764
Thanks for the tip.
I had to change required version of java from :
-Dosgi.requiredJavaVersion=1.7
into
-Dosgi.requiredJavaVersion=1.8
and remove this line as well :
-XX:MaxPermSize=256m
Happy coding !
Edit eclipse.desktop
as following:
Exec=env SWT_GTK3=0 eclipse
My recomendation is that you install Eclipse Mars from the webpage: http://www.eclipse.org/downloads/index-developer.php?release=mars
But first you have to install java8 (not java9 because Eclipse Mars doesn't work with that version). In Ubuntu you can do this with: sudo apt-get install openjdk-8-jre openjdk-8-jdk
And then .. and just if you have other java version, you have to select java8 with this command: sudo update-alternatives --config java
Voilà! That worked for me! :)