简体   繁体   中英

eclipse doesn't work with ubuntu 16.04

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?

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

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

Open eclipse.ini and add the following

--launcher.GTK_version
2

before --launcher.appendVmargs

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM