English 中文(简体)
java的用户,用当地语言回家
原标题:java user.home to return in local language

When I run System.getProperty("user.home") on turkish windows 7, I get "C:Usersaaaa" even though "Users" folder does not exist in my computer (I have the turkish translation of "users"). How can I get the correct user.home information? Thank you

最佳回答

even though "Users" folder does not exist in my computer (I have the turkish translation of "users").

情况并非如此。 你有“用户”的夹。 Windows在显示时自动翻译。 但是,你们必须使用“用户”作为档案系统途径,即<编码>用户.回报。 当地化的名称仅与向用户显示这一名称有关。 我不敢肯定如何从 Java法典中获取。

坦率地说,我认为,向用户展示不同于档案系统实际存在的多重名称的整个概念是荒谬的。

问题回答

什么版本的Windows是你运行的? 在Vista and above(2008年、2008R2、Windows7)上,无论目前语言如何,档案系统中的编号为。 但是,视窗探测器在我的案件中用“Benutzer”(德国)这一术语展示。 您可以在指挥窗口中检查,该双手的真实名称是<代码>。 用户





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签