簡體   English   中英

eclipse不適用於ubuntu 16.04

[英]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。

在命令行中進行測試以驗證它:

  1. 禁用GTK: export SWT_GTK3=0

  2. 在同一個會話中啟動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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM