LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux 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


Reply
  Search this Thread
Old 01-06-2009, 05:27 AM   #1
bitpicker
Member
 
Registered: Jul 2003
Location: Germany
Distribution: Xubuntu, Ubuntu
Posts: 416
Blog Entries: 14

Rep: Reputation: 35
Java applications ignore keyboard layout change


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
 
Old 01-06-2009, 10:44 PM   #2
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Rep: Reputation: 62
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 10:50 PM.
 
Old 01-07-2009, 12:21 AM   #3
bitpicker
Member
 
Registered: Jul 2003
Location: Germany
Distribution: Xubuntu, Ubuntu
Posts: 416

Original Poster
Blog Entries: 14

Rep: Reputation: 35
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
 
Old 01-07-2009, 06:35 AM   #4
ErV
Senior Member
 
Registered: Mar 2007
Location: Russia
Distribution: Slackware 12.2
Posts: 1,202
Blog Entries: 3

Rep: Reputation: 62
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).
 
Old 01-07-2009, 07:24 AM   #5
dickgregory
Member
 
Registered: Oct 2002
Location: Houston
Distribution: Arch, PCLinuxOS, Mint
Posts: 257

Rep: Reputation: 34
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.
 
Old 01-07-2009, 08:08 AM   #6
bitpicker
Member
 
Registered: Jul 2003
Location: Germany
Distribution: Xubuntu, Ubuntu
Posts: 416

Original Poster
Blog Entries: 14

Rep: Reputation: 35
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
 
  


Reply

Tags
german, java, keyboard, layout, russian



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 On
HTML code is Off



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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:02 AM.

Main Menu
Advertisement
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
Twitter: @linuxquestions
Open Source Consulting | Domain Registration