![](/img/trans.png)
[英]Eclipse menu bar won't show - Ubuntu 16.04 - Eclipse Mars
[英]eclipse doesn't work with ubuntu 16.04
我刚刚安装了ubuntu 16.04并下载了eclipse并解压缩。 当我开始eclipse时,欢迎页面是空的。
当我开始日食市场时,没有任何事情发生。
如何解决这个问题?
尝试在编辑eclipse.ini
文件并调整launcher
条目后启动Eclipse,如下所示:
--launcher.GTK_version
2
示例文件:
-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
这可能是由于GTK 3 SWT的实施。 Eclipse应该与GTK 2完美配合,但在最近的ubuntu上使用GTK 3。
在命令行中进行测试以验证它:
禁用GTK: export SWT_GTK3=0
在同一个会话中启动eclipse: eclipse
如果有效,请将其永久化。 找到eclipse.desktop并添加:
Exec=env SWT_GTK3=0 eclipse
打开eclipse.ini
并添加以下内容
--launcher.GTK_version
2
之前--launcher.appendVmargs
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.