Reputation: 883
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
Upvotes: 6
Views: 5570
Reputation: 53
I had the same issue with Oxygen and Elementary Loki. Changing to GTK2 worked for me.
Upvotes: 1
Reputation: 117
I was having this problem (Eclipse freeze, crash, with elementary OS Freya).
My Eclipse installation was done using the installer, so my path was different to what Prade jo indicates, but his solution was right on.
sudo scratch-text-editor
Browse to home -> yourUserName -> eclipse -> java-mars (or whichever version you have) -> eclipse -> eclipse.ini
The line before "--launcher.appendVmargs", add:
--launcher.GTK_version
2
Should now be good to go.
Upvotes: 6
Reputation: 69
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 ;)
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
Upvotes: 7
Reputation: 69
Try running eclipse from the terminal to see the problem. Most likely it is an X server problem.
Upvotes: 0