24

I just installed ubuntu 16.04 and downloaded eclipse and extracted. When i start eclipse the welcome page is empty.

When i start the eclipse marketplace nothing happens.

How to solve this issue?

Cœur
  • 37,241
  • 25
  • 195
  • 267
Asterios Raptis
  • 440
  • 1
  • 3
  • 11

3 Answers3

60

Try to start Eclipse after editing your eclipse.ini file and tweaking the launcher entry like this:

--launcher.GTK_version
2

Example file:

-startup
plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
--launcher.GTK_version
2
-product
org.eclipse.epp.package.cpp.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.7
-XX:MaxPermSize=256m
-Xms256m
-Xmx1024m
Victor Lamoine
  • 389
  • 1
  • 2
  • 21
Peter
  • 726
  • 5
  • 4
16

It's probably due to the GTK 3 SWT implementation. Eclipse should work perfectly with GTK 2, but uses GTK 3 on recent ubuntu.

Do a test in the command line to verify it:

  1. Disable GTK: export SWT_GTK3=0

  2. Launch eclipse in the same session: eclipse

If it works, make it permanent. Locate eclipse.desktop and add:

Exec=env SWT_GTK3=0 eclipse
  • 1
    Sorry it didn't work for you, but this advice worked for me. Before, my Eclipse (running on Ubuntu 16.04, using openjdk-8-jre) wasn't able to open windows like Window->Preferences or Help->Install New Software..., and options like Edit->Find/Replace... were greyed out in the menu, even while I was in an editor. Windows that were meant to popup at startup only appeared when I quit Eclipse. All this was fixed by setting SWT_GTK3=0, as above. – Stuart Caie Apr 25 '16 at 13:45
  • Fixed it it for me (Kubuntu 14.04). Thanks. – xenoid Feb 21 '17 at 16:13
9

Open eclipse.ini and add the following

--launcher.GTK_version
2

before --launcher.appendVmargs

Omid
  • 5,823
  • 4
  • 41
  • 50
muammertuzun
  • 123
  • 2
  • 11