+1

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

5 answers, +1 votes, 2342 views
Visitor's picture
asked by Visitor
37 weeks 3 days ago



5 Answers

Answer
+2

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
37 weeks 3 days ago
Answer
0

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
37 weeks 3 days 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 37 weeks 2 days ago
  • Answer
    0

    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
    37 weeks 2 days ago
    Answer
    +1

    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
    37 weeks 1 day ago
    Answer
    0

    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
    37 weeks 18 hours ago

    Asked by

    Visitor's picture
    Visitor

    View in your own language!