Results 1 to 3 of 3
  1. #1
    barakz is offline Member
    Join Date
    Nov 2008
    Rep Power

    Default System.getProperty with foreign language

    Hello All,
    I've developed a program that uses System.getProperty("user.home"). However, when I change the regional settings to a foreign language, I get a different (and wrong) path. Instead of the usual c:\documents and settings\administrator, when I switched the language to Turkish, I got C:\DOCUMENTS AND SETTİNGS\ADMİNİSTRATOR. Obviously, no such path exists, and so my program gets stuck (same thing happens in other foreign languages.
    How can I make the System.getProperty return the "normal" path ?

    Thanks in advance,

  2. #2
    racerxadam is offline Member
    Join Date
    Jul 2008
    Rep Power


    What are you trying to do with the foreign language? Localize the UI? Look into the ResourceBundle object that the java api provides to handle that.

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Colombo, Sri Lanka
    Blog Entries
    Rep Power

Similar Threads

  1. Replies: 2
    Last Post: 06-07-2012, 10:07 PM
  2. Is this the right language?
    By rws in forum New To Java
    Replies: 9
    Last Post: 11-15-2008, 04:27 PM
  3. Replies: 0
    Last Post: 07-22-2008, 05:36 PM
  4. IDE for new language
    By mitra2008 in forum Eclipse
    Replies: 2
    Last Post: 06-23-2008, 07:43 PM
  5. V language 0.004
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 07-19-2007, 04:18 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts