[英]eclipse doesn't work with ubuntu 16.04
I just installed ubuntu 16.04 and downloaded eclipse and extracted. 我刚刚安装了ubuntu 16.04并下载了eclipse并解压缩。 When i start eclipse the welcome page is empty.
当我开始eclipse时,欢迎页面是空的。
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: 尝试在编辑
eclipse.ini
文件并调整launcher
条目后启动Eclipse,如下所示:
--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. 这可能是由于GTK 3 SWT的实施。 Eclipse should work perfectly with GTK 2, but uses GTK 3 on recent ubuntu.
Eclipse应该与GTK 2完美配合,但在最近的ubuntu上使用GTK 3。
Do a test in the command line to verify it: 在命令行中进行测试以验证它:
Disable GTK: export SWT_GTK3=0
禁用GTK:
export SWT_GTK3=0
Launch eclipse in the same session: eclipse
在同一个会话中启动eclipse:
eclipse
If it works, make it permanent. 如果有效,请将其永久化。 Locate eclipse.desktop and add:
找到eclipse.desktop并添加:
Exec=env SWT_GTK3=0 eclipse
Open eclipse.ini
and add the following 打开
eclipse.ini
并添加以下内容
--launcher.GTK_version
2
before --launcher.appendVmargs
之前
--launcher.appendVmargs
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.