Ubuntu 9.10中Eclipse按钮失效的问题

升级到UBUNTU 9.10后发现ECLIPSE中弹出窗口上面按钮都不能点了,点了按钮会动一下,但就是不执行动作,必须再按”Enter”回车键才可以。有时甚至在安装插件时,也不能扫描到插件安装的选择项。

在Google中搜索了下,找到了解决办法:

After upgrading to Ubuntu 9.10 (Karmic Koala) some buttons no longer work in Eclipse 3.5. Clicking has no effect but keyboard shortcuts still work.

It looks like Eclipse is doing some nasty stuff advanced hacking in SWT on GTK. This bug is fixed in 3.6M2 but you canwork around the issue in Eclipse 3.5 by launching Eclipse through the following small shell script (assuming Eclipse is installed in /opt/eclipse-3.5):

1
2
3
#!/bin/sh
export GDK_NATIVE_WINDOWS=1
~/eclipse/eclipse

~/eclipse是Eclipse的安装目录,将上面脚本取名为fixeclipse,并将其权限设置为:

1
chmod a+x fixeclipse

然后以这个脚本启动Eclipse即可。为了方便使用,你可以在桌面上新建一个启动器,启动器的命令使用fixeclipse。

如果你不想使用fixeclipse脚本,还可以在启动器的”命令”配置行中写上:

1
sh -c "export GDK_NATIVE_WINDOWS=true; exec ~/eclipse/eclipse"

参考
http://www.norio.be/blog/2009/10/problems-eclipse-buttons-ubuntu-910

Monitor Your Web Site 24/7 - Receive email and SMS alerts anytime your web site goes down.

Related Posts

Leave a Reply

Monitor Your Web Site 24/7 - Receive email and SMS alerts anytime your web site goes down.

About Me

About Me
Record Technical Articles at Gooss.org.

Entries (RSS) and Comments (RSS). Valid XHTML and CSS and XFN.

© Copyright 2009 山海经. All rights reserved.

Social Bookmarks

Copyright © Designed by: Free WP Templates
Food Charts |  About Breast Milk |  Organic Food