Home > Eclipse, Ubuntu > Eclipse mouse click problem in Ubuntu 9.10

Eclipse mouse click problem in Ubuntu 9.10

Hi
When I update my ubuntu 9.4 to 9.10, I realized this problem. in Eclipse when I clicked on buttons,nothing really happened. I didn’t see this problem before.
OK solution is here:

  1. Create a blank file with eclipse.sh name
  2. Write this code to that file :
    #!/bin/sh
    export GDK_NATIVE_WINDOWS=1
    /home/[your eclipse directory]/eclipse

  3. give execute permission to eclipse.sh file with this command :
    chmod 777 eclipse.sh
  4. Run eclipse and enjoy :
    ./eclipse.sh [press enter]

I saw this bug in eclipse 4.3 [Ganymede] and 4.4 [Galileo].
bye

Advertisements
Categories: Eclipse, Ubuntu
  1. LeRenard
    November 17, 2009 at 11:37 am

    Thanks for the tip ! I had this problem too

  2. November 17, 2009 at 11:45 am

    Hi!

    I have noticed same problem, so I hope that works for me…

    I test it as soon as possible.

    Thanks for your hack.

    • Ehsan
      November 17, 2009 at 3:41 pm

      Don’t worry, I tested and it’s work fine.

  3. TiagoBraw
    November 17, 2009 at 12:55 pm

    Thanks, man…

    I was beginning to be upset about this BUG…

    It worked fine!

  4. TiagoBraw
    November 17, 2009 at 1:01 pm

    Oh, I forgot to tell that this bug affects all java programs as well, so I recomend putting this environment variable in /etc/environment to all java programs see it, not only eclipse…

    Thanks again, you saved a lot of work for me…

  5. Ehsan
    November 17, 2009 at 3:36 pm

    😉 Yes, I think we should put this to environment.

  6. The Huff
    November 18, 2009 at 4:49 pm

    This worked great, thanks for posting it!

    In conjunction with these instructions:
    http://flurdy.com/docs/eclipse/install.html

    I have a perfectly running eclipse.

  7. RAO
    November 22, 2009 at 6:49 pm

    Holy Crap Thanks Ehsan, this has been driving me crazy for weeks! its so simple.
    I also have this cursed problem with clicking other buttons
    (i.e. Clicking “fullscreen” on hulu! 😡 ). I will see if your grand plan solves this as well.

    P.S. Your my hero.

    • Ehsan
      November 22, 2009 at 7:59 pm

      I think, You should write this code as general for your jre option.. It’s a conflict problem about GTK2+ and JAVA , I will talk about this in the next post…

  8. Gabriel Cartuccia
    November 24, 2009 at 1:17 am

    I suggest you to do this:

    chmod +x eclipse.sh

    instead of doing:

    chmod 777 eclipse.sh

    The former gives to the script only the necessary permissions (for execution).

  9. November 24, 2009 at 9:41 am

    Well, I noticed this problem in CVS perspective, so I thought that new Eclipse has problem with CVS module. Today I tried to add Quantum plugin and experienced the same issue. So, conclusion was that something generally with buttons goes wrong … and yours solution saved me.

    Thank you!

  10. Martin
    November 25, 2009 at 2:25 pm

    Thanks a lot, you saved my life. I wondered whether this problem occured when I upgraded Ubuntu or switched to PDT (Eclipse for PHP Developer).
    It was really a pain in .. to click with the mouse and then hit space afterwards 😉

  11. eze
    November 26, 2009 at 11:35 am

    Thanks, it did the trick.

  12. fabalint
    December 2, 2009 at 8:17 am

    if the binary is ‘eclipse’, the name should be ‘eclipse.sh’ – so add the ‘.sh’ suffix or the same thing as in the sed search:
    #!/bin/sh
    export GDK_NATIVE_WINDOWS=1
    `echo “$0” | sed -re ‘s/.sh$//’`&

  13. Ron
    December 2, 2009 at 3:32 pm

    Thank you all for the tips, and specially for original blogger! I spent 2 days debugging and troubleshooting a new 9.10 installation running a few Java apps.

    Obviously, Eclipse and Spring STS didn’t work. Another problem I observed was a stackOverflow Exception thrown by my Java application. The application is using SLF4J logging framework, JCL logging, and Logback native logging. The stackOverflow was because for some reason java.util.logging was being enabled because of this 9.10 bug. Once I set ‘export GDK_NATIVE_WINDOWS=1’ everything was well.

  14. cat
    December 2, 2009 at 7:03 pm

    It’s not working for me.
    I did what you sad but nothing happened.
    What`s the problem? 😦

    • Ehsan
      December 2, 2009 at 10:00 pm

      I don’t know really, But this code works for everyone. Maybe you did wrong some steps …

    • Warren
      December 10, 2009 at 5:56 pm

      run eclipse.sh from a terminal prompt, and it should correct the problem. You may need to change the icon properties on your desktop to ensure you are running the shell script.
      This also fixes SUSE 11.2 and eclipse — THANKS!

  15. December 16, 2009 at 8:21 am

    Good. thanks for this. it worked for me.

  16. Dani
    December 17, 2009 at 10:28 pm

    Thx mate. Really simple solution to a very annoying problem 🙂

  17. warren j
    January 11, 2010 at 8:50 pm

    Should point out that this also impacts Windoze if gtk-sharp is installed. This fix applies there also, but you have to put it in the envionment (control-panel, system)

    Thx for a simple fix… was driving me crazy in suse11.2

  18. liono
    January 15, 2010 at 8:29 am

    thanks buddy i have this problem too.
    i’ll try this solution as soon as possible.

    • Ehsan
      January 15, 2010 at 8:57 am

      buyrun! arkadash 😉

  19. Andrew
    January 18, 2010 at 5:11 pm

    I love you.

  20. subodh
    January 21, 2010 at 5:15 pm

    Thanks !!!!! It really works for me

  21. Thirdnormal
    January 26, 2010 at 5:13 am

    This works for me. Thank you for the tip!

  22. Boti
    February 2, 2010 at 12:34 pm

    Thanks a lot ! It is a great help for me.

  23. arnav
    February 7, 2010 at 3:28 am

    Hi

    thanks a lot for the awesome work. I have been struggling for 2 hours before i found what the problem is..

    Thanks again

    Regards
    Arnav

  24. February 10, 2010 at 3:52 pm

    Great!
    It had been annoying me for weeks.
    Thanks a lot

  25. Colin
    February 12, 2010 at 10:54 pm

    Works! Thanks a lot. Dang it was annoying.

  26. February 20, 2010 at 8:53 am

    thank you for this article man. great.

  27. cejota
    August 25, 2010 at 1:49 pm

    I cry! is wonderfull!

    Very very thanks, i’m crazy about this bug, right now send mail to my eclipse-dudes whit a link here.

  28. Fizer Khan
    September 2, 2010 at 9:03 am

    I had same issue, it works after setting the GDK_NATIVE_WINDOWS=true.
    I wondering that which causes this issue? Is this problem with eclipse or Ubuntu?

  1. January 30, 2010 at 4:20 pm
  2. February 8, 2010 at 8:24 pm

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: