It didn't solved the problem. Though I noticed that if I run the java program as root, it does pick the right keyboard. That was the reason I thought changing /etc/environment worked.
-- Java keyboard layout problem https://bugs.launchpad.net/bugs/250990 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs