9

I've just upgrade my Ubuntu from 9.04 to 9.10 and I'm experimenting a very annoying problem with Eclipse Galileo.

The problem is that Eclipse doesn't catch some button clicks. For example, I've tried to install a plugin and I clicked on next, and then nothing happened.

I didn't have the same problem before the upgrade of my Ubuntu version.

etiennepeiniau
  • 793
  • 1
  • 6
  • 19
  • 1
    This might get more traction on superuser, who knows if it's eclipse-specific or generic bit of Ubuntu-ism. – bmargulies Nov 29 '09 at 19:24

2 Answers2

18

This is a known bug (bug 291257) with Eclipse 3.5 and GTK+ 2.8 (fixed in Eclipse 3.6). The workaround is to set the GDK_NATIVE_WINDOWS environment variable to true before to start Eclipse.

I use the following startup script for Eclipse:

#!/bin/sh
export MOZILLA_FIVE_HOME=/usr/lib/mozilla/
export ECLIPSE_HOME=/opt/IBM/eclipse
export GDK_NATIVE_WINDOWS=true # workaround for Karmic - http://bit.ly/T8MIc
$ECLIPSE_HOME/eclipse $*

The important part is the line export GDK_NATIVE_WINDOWS=true.

Nightfirecat
  • 11,432
  • 6
  • 35
  • 51
Pascal Thivent
  • 562,542
  • 136
  • 1,062
  • 1,124
  • That's what I do for the same problem, and it works great! If you're ever stuck in Eclipse without that, though: Usually you can still work the button by TABbing to it and typing -space- on the keyboard. – Carl Smotricz Nov 29 '09 at 19:30
  • I think, the script is not a solution. If eclipse would restart, a instance still has the same problem. – Nyambaa Feb 18 '10 at 07:23
  • @Nyambayar feel free to not use it. – Pascal Thivent Feb 18 '10 at 10:06
1

There was a change in GTK with Karmic. Here are the relevant bugs:

https://bugs.launchpad.net/ubuntu/+source/swt-gtk/+bug/463086

https://bugs.eclipse.org/bugs/show_bug.cgi?id=291257

Francis Upton IV
  • 19,322
  • 3
  • 53
  • 57