英文环境下 netbeans 无法输入中文问题

Posted by wxianfeng Tue, 02 Nov 2010 22:23:00 GMT

环境:ubuntu 10.10 + ibus + netbeans 6.9.1

这个问题老早就遇到了,就是一直没解决,今天算是找到一个完美的办法了,用过fcitx ,scim ,ibus 输入法,都会有同样的问题,以前遇到的解决办法

1,重启netbeans
2,重启输入法

完美解决办法:

在桌面上新建一个shell文件,然后拖到你的panel上,每次启动netbeans的时候,点击panel上的这个shell文件就ok了

相当于 终端上执行了 >LANG=zh_CN.UTF-8 /bin/sh “/usr/local/system/netbeans-6.9.1/bin/netbeans” —locale en_US

>vim nb.sh
#!/bin/sh
LANG=zh_CN.UTF-8 /bin/sh "/usr/local/system/netbeans-6.9.1/bin/netbeans" --locale en_US 

>chmod +x nb.sh

or

>vim nb.sh
#!/bin/sh
/bin/sh "/usr/local/system/netbeans6_9/bin/netbeans" --locale zh_CN.UTF-8

>chmod +x nb.sh

终端 daemon 执行:

nohup  /bin/sh "/usr/local/system/netbeans6_9/bin/netbeans" --locale zh_CN.UTF-8  &

see:
http://www.linuxsir.org/bbs/thread370506.html

This entry was posted on Tue, 02 Nov 2010 22:23:00 GMT and Posted in . You can follow any any response to this entry through the Atom feed. You can leave a comment or a trackback from your own site.

Tags


Trackbacks

Use the following link to trackback from your own site:
http://wxianfeng.com/trackbacks?article_id=90

Comments

Leave a comment