Netbeans 6.5 curly bracket problem in Ubuntu Jaunty

06:23PM Apr 26, 2009 in category Linux & Co by Alexander Pirsig

I've just started with netbeans + grails this morning but instead of writing my first grails controller I had to manage a problem with curly brackets and the german keyboard layout. The problem was that after pressing ALTGR + 7 which is { on german keyboards, netbeans returned a "7".

Just as Brain proposes in his blog, you can overload a x-server system variable called "XMODIFIERS" bevor starting NetBeans.

This can be accomplished in two ways. Solution one just overloads this variable, bevor calling netbeans IDE.
export XMODIFIERS='' && ./NetBeansInstallDir/bin/netbeans [ENTER]
Another solution is to place that call directly in the netbeans startup script. Todo so open the startup script with "vi NetBeansInstallDir/bin/netbeans" and place the following line at the very beginning of this file.
#!/bin/sh # <- this is the first line of netbeans script
export XMODIFIERS=''; # <- INSERT this line
After a restart Netbeans should behave now.

Kommentare[0] Tags: altgr jaunty problem workaround netbeans layout hack ubuntu curly-bracket keyboard