LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux > Linux - General
User Name
Password
Linux - General This forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Tags used in this thread
Popular LQ Tags , , , ,

Reply
 
Thread Tools
Old 01-06-2009, 06:27 AM   #1
bitpicker
Member
 
Registered: Jul 2003
Location: Germany
Distribution: Xubuntu, Ubuntu
Posts: 411
Blog Entries: 14
Thanked: 10
Java applications ignore keyboard layout change


[Log in to get rid of this advertisement]
I am using a Gentoo system with XFce and Sun Java JRE 1.6. My keyboard uses a German layout, but as I am learning Russian I have added the ability to switch to Russian (genuine, not phonetic). This works well, only Java applications (jVLT for learning vocabulary and JBidWatcher, which I just tested to prove the problem is java-related) ignore the setting.

I can copy and paste Russian into jVLT, but cannot type it there directly. Instead, the symbols which turn up are the standard symbols defined by the German keyboard layout.

I suppose there's a way to set the keyboard layout for Java specifically, or something like that. Can anyone point me in the right direction?

Thanks in advance.

Robin
bitpicker is offline  
Tag This Post , , , ,
Reply With Quote
Old 01-06-2009, 11:44 PM   #2
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,268
Blog Entries: 3
Thanked: 29
Quote:
Originally Posted by bitpicker View Post
I am using a Gentoo system with XFce and Sun Java JRE 1.6.
"jre-1.6" doesn't tell anything. Make sure that your java version is something like jre-1.6.0_11(as on my machine), and not just 1.6.0. If it is simply 1.6.0, then you should probably update your java runtime environment to the latest currently available.

Quote:
Originally Posted by bitpicker View Post
My keyboard uses a German layout, but as I am learning Russian I have added the ability to switch to Russian (genuine, not phonetic). This works well, only Java applications (jVLT for learning vocabulary and JBidWatcher, which I just tested to prove the problem is java-related) ignore the setting.

I can copy and paste Russian into jVLT, but cannot type it there directly. Instead, the symbols which turn up are the standard symbols defined by the German keyboard layout.

I suppose there's a way to set the keyboard layout for Java specifically, or something like that. Can anyone point me in the right direction?

Thanks in advance.

Robin
I had similar problem in the past. In my case it was caused by wrong locale: Java accepted russian input only if LANG was set to ru_RU.UTF-8 but didn't accept russian input if LANG was set to ru_RU.UTF8 (notice missing dash between "F" and "8"). I don't remember, how I figured it out. Check your locale ("LANG" variable). If it ends with .UTF8 (which is probably the case), make it .UTF-8 and try again.

Last edited by ErV; 01-06-2009 at 11:50 PM..
ErV is offline     Reply With Quote
Old 01-07-2009, 01:21 AM   #3
bitpicker
Member
 
Registered: Jul 2003
Location: Germany
Distribution: Xubuntu, Ubuntu
Posts: 411
Blog Entries: 14
Thanked: 10

Original Poster
The JRE is 1.6.0.11.

My current locale settings are:

Code:
locale
LANG=de_DE.UTF-8@euro.UTF-8
LC_CTYPE="de_DE.UTF-8@euro.UTF-8"
LC_NUMERIC="de_DE.UTF-8@euro.UTF-8"
LC_TIME="de_DE.UTF-8@euro.UTF-8"
LC_COLLATE="de_DE.UTF-8@euro.UTF-8"
LC_MONETARY="de_DE.UTF-8@euro.UTF-8"
LC_MESSAGES="de_DE.UTF-8@euro.UTF-8"
LC_PAPER="de_DE.UTF-8@euro.UTF-8"
LC_NAME="de_DE.UTF-8@euro.UTF-8"
LC_ADDRESS="de_DE.UTF-8@euro.UTF-8"
LC_TELEPHONE="de_DE.UTF-8@euro.UTF-8"
LC_MEASUREMENT="de_DE.UTF-8@euro.UTF-8"
LC_IDENTIFICATION="de_DE.UTF-8@euro.UTF-8"
LC_ALL=de_DE.UTF-8@euro.UTF-8
So they all have the dash.

Robin
bitpicker is offline     Reply With Quote
Old 01-07-2009, 07:35 AM   #4
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,268
Blog Entries: 3
Thanked: 29
Quote:
Originally Posted by bitpicker View Post

So they all have the dash.

Robin
I think this locale is not fully supported by java runtime envioronment.
Check if this locale is supported by jre (list of supported locales is somewhere on the internet - google for it).
Anyway, I tried de_DE.UTF-8@euro.UTF-8 on my machine, it doesn't work (russian letters discarded when I type). However, de_DE.UTF-8 works fine (can type russian letters without problems).
ErV is offline     Reply With Quote
Old 01-07-2009, 08:24 AM   #5
dickgregory
Member
 
Registered: Oct 2002
Location: Houston
Distribution: Arch
Posts: 229
Thanked: 7
I can't help you with your question, but something about your post impressed me. I assume that your native language is German. You are learning Russian, and your post used excellent English. I've tried several times to learn a second language (Spanish) and even though it is spoken all around me, I've never been able to even become conversant.

I wish more native English speakers would learn to use the quality of English that you demonstrate in your posts.

Q. What do you call a person that speaks 2 languages?
A. Bilingual.
Q. What do you call a person that speaks 3 languages?
A. Trilingual.
Q. What do you call a person that speaks 1 language?
A. An American.
dickgregory is offline     Reply With Quote
Old 01-07-2009, 09:08 AM   #6
bitpicker
Member
 
Registered: Jul 2003
Location: Germany
Distribution: Xubuntu, Ubuntu
Posts: 411
Blog Entries: 14
Thanked: 10

Original Poster
Thanks, Dick.

You're right, my native language is German. But I studied English literature and linguistics at university and I spend most of my online time on English sites and most of my quite extensive reading is in English, too. When I went to school English was more or less compulsory from age ten, nowadays students at school here in Germany begin learning English as early as the first year at school.

I dare not hope to reach a similar level of fluency in any further language I might take up, though. At almost forty the brain isn't such a language sponge anymore.

Robin
bitpicker is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot change keyboard layout mikerobinson Linux - Hardware 10 04-20-2009 04:54 PM
Need to change keyboard layout anti.corp Solaris / OpenSolaris 4 04-02-2006 07:02 AM
Why I cannot change my keyboard layout? GregSP Mandriva 3 01-14-2006 06:48 PM
How do i change the keyboard layout? ArmedCoder Linux - Hardware 0 11-20-2003 07:25 PM
java applications - keyboard layout shinzi Linux - General 1 05-12-2002 03:44 PM


All times are GMT -5. The time now is 07:54 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration