Eclipse crash on elementaryOS

Every time I try to start eclipse my system crashes. This happens when a window appears asking me to select a workspace. I've installed JDK and Maven and downloaded Eclipse from the official site.

+3


source to share


4 answers


This is a bug in sending SWT to GTK3. There is no real solution, but there is a workaround forcing Eclipse to use GTK2.

I am assuming that your Eclipse folder is / opt / eclipse and that you do not have write permissions on that folder. Change the commands if your setup is different.

There are two ways to apply this workaround, the long and explanatory way, and the short one is for the lazy;)

  • Modifying eclipse.ini manually

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 help, plz check

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

+5


source


I had this problem (Eclipse eclipse, crash, with Elementary Freya OS).

My Eclipse installation was done using the installer, so my path was different from what Prade jo points out, but his solution was correct.

sudo scratch-text-editor

      

Go to home -> yourUserName -> eclipse -> java-mars (or whatever version you have) -> eclipse -> eclipse.ini



The line before "--launcher.appendVmargs" adds:

--launcher.GTK_version
2

      

It should be good to go.

+4


source


Try running eclipse from terminal to see the problem. This is most likely an X server issue.

0


source


I had the same problem with Oxygen and Elementary Loki. Switching to GTK2 worked for me.

0


source







All Articles