After the 9.10 upgrade from 9.04 sometimes clicking on eclipse ide buttons doesn't work anymore. How to fix this?

5 answers, votes, 3932 views
Visitor's picture
asked by Visitor
2 years 12 weeks ago



5 Answers

Answer

To the eclipse launcher, add this line:
export GDK_NATIVE_WINDOWS=1
 
Of course, this assumes you have an .sh launcher that your are executing.  If not, then create one, and point your menu launcher to the new script.  There is probably also a way to add this permanently to your environment, but I haven't found it (for instance, editing .bashrc doesn't work, it only effects when you run bash).

Visitor's picture
answer by Visitor
2 years 12 weeks ago
Answer

This was due to a bug in SWT or GTK. But the good news is the following fixes the problem
 
export GDK_NATIVE_WINDOWS=1
 
To make it permanent you can add this entry into the /etc/environment file or create a eclipse.sh file and add it before calling /path/to/eclipse

Visitor's picture
answer by Visitor
2 years 12 weeks ago
  • Ubuntu 9.10
    ~/.profile -> export GDK_NATIVE_WINDOWS=1 [failed]
    env GDK_NATIVE_WINDOWS=1 /path/to/eclipse [failed]
    /etc/environment -> export GDK_NATIVE_WINDOWS=1 [failed]
     
    Gnome unsets this particular variable whenever he can. Is there anyway to forbid gnome unsetting this variable?
     

    - Visitor 2 years 12 weeks ago
  • Answer

    Ubuntu 9.10
    ~/.profile -> export GDK_NATIVE_WINDOWS=1 [failed]
    env GDK_NATIVE_WINDOWS=1 /path/to/eclipse [failed]
    /etc/environment -> export GDK_NATIVE_WINDOWS=1 [failed]
     
    Gnome unsets this particular variable whenever he can. Is there anyway to forbid gnome unsetting this variable?
     

    Visitor's picture
    answer by Visitor
    2 years 12 weeks ago
    Answer

    I created a eclipse.sh with the following contents and it works great for me.
     
     
    #!/bin/sh
    export GDK_NATIVE_WINDOWS=1
    /home/eclipse/eclipse
     

    Visitor's picture
    answer by Visitor
    2 years 12 weeks ago
    Answer

    As mentioned before, export  GDK_NATIVE_WINDOWS=1 shell variable before invoke Eclipse, or in my case, Aptana.If you want a simpler workaround: click on the "lazy" buttons that doesn't work to put focus on them and press Enter to "click" on them.Spanish link: http://blog.jorgeivanmeza.com/2009/11/problemas-para-instalar-plugins-de...

    Visitor's picture
    answer by Visitor
    2 years 12 weeks ago

    Ubuntu 11.04 released!

    Ubuntu 11.04 code named natty narwhal is released download ubuntu 11.04

    Read ubuntu 11.10 reviews and share yours now!!

    View in your own language!

    Stay Connected

    Ubun2.com on Facebook Ubun2.com on Twitter RSS Feeds

    Poll

    Favorite desktop environment?: