Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse crashes in elementaryOS

Everytime I try to run eclipse, my system crashes. That happens when it appears the window that asks me to select the workspace. I've installed JDK and Maven, and downloaded Eclipse from the official website

like image 922
Rodrigo Juarez Avatar asked Jul 12 '15 00:07

Rodrigo Juarez


1 Answers

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:

--launcher.GTK_version

2

It's important to add these lines before --launcher.appendVmargs, otherwise Eclipse will crash.

for more reference, plz check

https://elementaryos.stackexchange.com/questions/1276/eclipse-mars-freezes-after-splash-screen

like image 95
Prade jo Avatar answered Sep 29 '22 08:09

Prade jo