Fixing Eclipse in Ubuntu 9.10 Karmic Koala
The fix is relatively simple. Create a file in your home folder (or wherever you want) called eclipsefix.sh – open it and add the following lines:
export GDK_NATIVE_WINDOWS=true
/opt/eclipse/eclipse
(where /opt/eclipse/eclipse is the location of your eclipse application file).
Make sure you make it executable (chmod +x ~/eclipsefix.sh) then go to whatever shortcut you usually use to open Eclipse and change the command to point towards the file you just created (ie,/home/mou/eclipsefix.sh).
Now whenever you open Eclipse using this shortcut, the script will run and eclipse should work as expected.
According to the eclipse bug tracker, this issue should be fixed in Eclipse 3.5.2