eclipse doesn't work with ubuntu 16.04

匿名 (未验证) 提交于 2019-12-03 01:25:01

问题:

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?

回答1:

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


回答2:

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


回答3:

Open eclipse.ini and add the following

--launcher.GTK_version 2

before --launcher.appendVmargs



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!