Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using Fedora 18 with Gnome 3.6, my keyboard layout settings is English (US). When I need to write accented characters, I use the compose key (right-alt) plus the accent key (`) followed by the vowel I want to be accented. It works fine in all applications except in those that are java based. Anyone knows how to solve this issue?

share|improve this question
How is the compose key defined? I have another setup (Debian/KDE), but compose does work here in java applicatiosn when defined via ~/.Xmodmap: keysym Super_R = Multi_key (that's the windows context menu key). Perhaps you can give that a try, too. – mpy Mar 3 '13 at 11:05

Set the XMODIFIERS variable to "":

$ env XMODIFIERS="" java -jar your_java_application.jar


$ export XMODIFIERS=""

$ java -jar your_java_application.jar

But in the later case, XMODIFIERS variable will remain modified after exiting the java application, and may be other commands need it in its default value.

I learnt this trick here:;jsessionid=AC90E67E77944B70A337D368B22A788A#5485348

share|improve this answer
Not only fixes problems with compose key. In my case it fixed problem with not working deadkey (Kubuntu 14.04). – ñull Jun 15 at 19:15

Try exporting the AWT_TOOLKIT environment variable this way

export AWT_TOOLKIT=MToolkit
share|improve this answer
Just tried, It does not work. – Manuel Bitto Mar 1 '13 at 13:23
have you tried exporting the variable from a terminal and then launching your java application from the same terminal? – Andrea de Palo Mar 1 '13 at 19:16
Tried, doesn't work :( – Manuel Bitto Mar 1 '13 at 19:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.