eclipse doesn't work with ubuntu 16.04

前端 未结 3 2038
不知归路
不知归路 2020-12-02 18:47

I just installed ubuntu 16.04 and downloaded eclipse and extracted. When i start eclipse the welcome page is empty.

When i start the eclipse marketplace nothing happ

相关标签:
3条回答
  • 2020-12-02 19:24

    Try to start Eclipse after editing your eclipse.ini file and tweaking the launcher entry like this:

    --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
    
    0 讨论(0)
  • 2020-12-02 19:29

    Open eclipse.ini and add the following

    --launcher.GTK_version
    2
    

    before --launcher.appendVmargs

    0 讨论(0)
  • 2020-12-02 19:36

    It's probably due to the GTK 3 SWT implementation. Eclipse should work perfectly with GTK 2, but uses GTK 3 on recent ubuntu.

    Do a test in the command line to verify it:

    1. Disable GTK: export SWT_GTK3=0

    2. Launch eclipse in the same session: eclipse

    If it works, make it permanent. Locate eclipse.desktop and add:

    Exec=env SWT_GTK3=0 eclipse
    
    0 讨论(0)
提交回复
热议问题