DEV Community

Stack All Flow
Stack All Flow

Posted on • Originally published at stackallflow.com on

Eclipse Not Working in 16.04 in Ubuntu?

6.04eclipse

Eclipse was working as good as anything on 14.04. I did a clean install of 16.04 and installed Eclipse. But it runs a Java program only once after which it just hangs during subsequent attempts before I remove and reinstall it. I have tried many things, since in the beginning I needed CDT as well. Right now, I just want to remove everything related to eclipse and do a fresh install (remove all the configs and dependencies). Please note that I used Eclipse installer to install Eclipse and the eclipse icon image is also not appearing (the default ubuntu ? is appearing).

Accepted Answer

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

Enter fullscreen mode Exit fullscreen mode

before the line:

--launcher.appendVmargs

Enter fullscreen mode Exit fullscreen mode

The bug is filed with Ubuntu at bug 1552764

The post Eclipse Not Working in 16.04 in Ubuntu? appeared first on Stack All Flow.

Discussion (0)