Ubuntu16.04下eclipse运行不正常问题解决

Ubuntu16.04下eclipse运行不正常,表现在运行缓慢,windows->preferences参数配置窗口不显示。解决办法是,在eclipse.ini文件 --launcher.appendVmargs语句前加:

--launcher.GTK_version
2

另外一个方案: shell中先export SWT_GTK3=0 然后启动eclipse,效果还好

http://askubuntu.com/questions/761604/eclipse-not-working-in-16-04

最优方案:

sudo ln -s /opt/eclipse/eclipse /usr/bin/eclipse

 

sudo gedit /usr/share/applications/eclipse.desktop

输入如下内容:

[Desktop Entry]
Version=1.0
Name=Eclipse
Exec=env SWT_GTK3=0 UBUNTU_MENUPROXY= eclipse
Terminal=false
Icon=/opt/eclipse/icon.xpm
Type=Application
Categories=IDE;Development
X-Ayatana-Desktop-Shortcuts=NewWindow
[NewWindow Shortcut Group]
Name=New Window
Exec=env SWT_GTK3=0 UBUNTU_MENUPROXY= eclipse
TargetEnvironment=Unity

你可能感兴趣的:(Ubuntu16.04下eclipse运行不正常问题解决)