I'm having trouble running Eclipse Mars x64 on Elementary OS. I get to the splash screen and then my computer freezes I have to hard restart it. I'm using the Oracle JDK for Java 8.
It's a bug in the SWT porting on GTK3. There is no real solution, but there is a workaround by forcing Eclipse to use GTK2.
I assume your Eclipse folder is
/opt/eclipse and that you don't have write permissions in this folder. Please change the commands, if your set-up differs.
There are two ways to apply this workaround, a long and explanatory way, and a short one for the lazy ;)
1. Modifying eclipse.ini by hand
You need to open
eclipse.ini in your Eclipse folder:
sudo -i scratch-text-editor /opt/eclipse/eclipse.ini
and add the following lines:
It's important to add these lines before
--launcher.appendVmargs, otherwise Eclipse will crash.
2. Using the command sed
An easier way to make these changes is to use
sed. Copy&pase this command in your terminal and press Enter:
sudo sed -i '/--launcher.appendVmargs/ i \--launcher.GTK_version\n2' /opt/eclipse/eclipse.ini
Your Eclipse should work properly from now on.
This is a known bug (see Launchpad). Unfortunately there is no solution yet.