eclipse 不适用于 ubuntu 16.04
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/36822242/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
eclipse doesn't work with ubuntu 16.04
提问by Asterios Raptis
I just installed ubuntu 16.04 and downloaded eclipse and extracted. When i start eclipse the welcome page is empty.
我刚刚安装了 ubuntu 16.04 并下载了 eclipse 并解压。当我开始 eclipse 时,欢迎页面是空的。
When i start the eclipse marketplace nothing happens.
当我开始日食市场时,什么也没有发生。
How to solve this issue?
如何解决这个问题?
回答by Peter
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
回答by Alberto Alvarellos
It's probably due to the GTK 3 SWT implementation. Eclipse should work perfectly with GTK 2, but uses GTK 3 on recent ubuntu.
这可能是由于 GTK 3 SWT 实现。Eclipse 应该与 GTK 2 完美配合,但在最近的 ubuntu 上使用 GTK 3。
Do a test in the command line to verify it:
在命令行中做一个测试来验证它:
Disable GTK:
export SWT_GTK3=0
Launch eclipse in the same session:
eclipse
禁用 GTK:
export SWT_GTK3=0
在同一会话中启动 eclipse:
eclipse
If it works, make it permanent. Locate eclipse.desktop and add:
如果有效,请将其永久化。找到 eclipse.desktop 并添加:
Exec=env SWT_GTK3=0 eclipse
回答by muammertuzun
Open eclipse.ini
and add the following
打开eclipse.ini
并添加以下内容
--launcher.GTK_version
2
before --launcher.appendVmargs
前 --launcher.appendVmargs