Ubuntu9.10 SpringSource STS 按键失灵的解决

在Ubuntu9.10系统上使用SpringSource STS 2.3的时候,【Finish】不响应鼠标但是响应键盘。
在网上找到了解决方案,是eclipse3.5的问题。
如下:
1、创建eclipse.sh Shell文件
1.1在STS的目录下创建eclipse.sh文件
#!/bin/sh
export GDK_NATIVE_WINDOWS=1
/home/bona/opt/springsource/sts-2.3.0.RELEASE/STS
#bona是用户名,最后一行是指定STS的路径,建议采用绝对路径。

1.2 执行命令 chomd a+x eclipse.sh

2、创建STS启动菜单
在/home/bona/.local/share/applications目录中创建sts.desktop文件。

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Terminal=null
Exec="/home/bona/opt/springsource/sts-2.3.0.RELEASE/eclipse.sh"
Categories=Development;Application;
Name=SpringSource Tool Suite
Name[en_US]=SpringSource Tool Suite
Comment="SpringSource Tool Suite of the IDE available."
Comment[en_US]="The Stable installs of MyEclipse represent the most recent stable releases of the IDE available."
Icon=/home/bona/opt/springsource/sts-2.3.0.RELEASE/icon.xpm
Icon[en_US]=/home/bona/opt/springsource/sts-2.3.0.RELEASE/icon.xpm
Blueprint=rb-578452

这样就可以在系统菜单Applications->programming->SpringSource Tool Suite启动STS。