<i id='nAfY8'><tr id='nAfY8'><dt id='nAfY8'><q id='nAfY8'><span id='nAfY8'><b id='nAfY8'><form id='nAfY8'><ins id='nAfY8'></ins><ul id='nAfY8'></ul><sub id='nAfY8'></sub></form><legend id='nAfY8'></legend><bdo id='nAfY8'><pre id='nAfY8'><center id='nAfY8'></center></pre></bdo></b><th id='nAfY8'></th></span></q></dt></tr></i><div id='nAfY8'><tfoot id='nAfY8'></tfoot><dl id='nAfY8'><fieldset id='nAfY8'></fieldset></dl></div>

    • <bdo id='nAfY8'></bdo><ul id='nAfY8'></ul>
  1. <small id='nAfY8'></small><noframes id='nAfY8'>

    1. <legend id='nAfY8'><style id='nAfY8'><dir id='nAfY8'><q id='nAfY8'></q></dir></style></legend>
    2. <tfoot id='nAfY8'></tfoot>

      在 Windows 7 上,Java JVM 如何设置“user.home"?系统属性?

      On Windows 7, how does Java JVM set quot;user.homequot; System property?(在 Windows 7 上,Java JVM 如何设置“user.home?系统属性?)
      <i id='BjsR2'><tr id='BjsR2'><dt id='BjsR2'><q id='BjsR2'><span id='BjsR2'><b id='BjsR2'><form id='BjsR2'><ins id='BjsR2'></ins><ul id='BjsR2'></ul><sub id='BjsR2'></sub></form><legend id='BjsR2'></legend><bdo id='BjsR2'><pre id='BjsR2'><center id='BjsR2'></center></pre></bdo></b><th id='BjsR2'></th></span></q></dt></tr></i><div id='BjsR2'><tfoot id='BjsR2'></tfoot><dl id='BjsR2'><fieldset id='BjsR2'></fieldset></dl></div>

      <small id='BjsR2'></small><noframes id='BjsR2'>

        <legend id='BjsR2'><style id='BjsR2'><dir id='BjsR2'><q id='BjsR2'></q></dir></style></legend>
            <tbody id='BjsR2'></tbody>
          <tfoot id='BjsR2'></tfoot>

            <bdo id='BjsR2'></bdo><ul id='BjsR2'></ul>

                本文介绍了在 Windows 7 上,Java JVM 如何设置“user.home"?系统属性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我使用的是 JRE 1.7,我发现 user.home 系统属性非常不寻常.JVM是如何设置这个值的?

                I am using JRE 1.7 and I discovered the user.home System property is very unusual. How does the JVM set this value?

                推荐答案

                这个 Java 错误解释了如何:http://bugs.sun.com/view_bug.do?bug_id=4787931

                This Java bug explains how: http://bugs.sun.com/view_bug.do?bug_id=4787931

                系统属性user.home设置者:

                1. 读取注册表项的值:HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerShell FoldersDesktop
                2. 取该值的父路径,但解析环境变量.
                1. Read the registry value for key: HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerShell FoldersDesktop
                2. Take the parent path of this value, but do not resolve environment variables.

                示例:%userprofile%Desktop => %userprofile%(未解析的环境变量)

                Example: %userprofile%Desktop => %userprofile% (unresolved environment variable)

                这个问题应该在 Java 8 中得到修复.

                This issue should be fixed in Java 8.

                相关参考:Java 用户.home 被设置为 %userprofile% 并且没有被解析

                这篇关于在 Windows 7 上,Java JVM 如何设置“user.home"?系统属性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                How to send data to COM PORT using JAVA?(如何使用 JAVA 向 COM PORT 发送数据?)
                How to make a report page direction to change to quot;rtlquot;?(如何使报表页面方向更改为“rtl?)
                Use cyrillic .properties file in eclipse project(在 Eclipse 项目中使用西里尔文 .properties 文件)
                Is there any way to detect an RTL language in Java?(有没有办法在 Java 中检测 RTL 语言?)
                How to load resource bundle messages from DB in Java?(如何在 Java 中从 DB 加载资源包消息?)
                How do I change the default locale settings in Java to make them consistent?(如何更改 Java 中的默认语言环境设置以使其保持一致?)

                  <small id='qg1Yq'></small><noframes id='qg1Yq'>

                  <tfoot id='qg1Yq'></tfoot>

                  • <legend id='qg1Yq'><style id='qg1Yq'><dir id='qg1Yq'><q id='qg1Yq'></q></dir></style></legend>

                        <i id='qg1Yq'><tr id='qg1Yq'><dt id='qg1Yq'><q id='qg1Yq'><span id='qg1Yq'><b id='qg1Yq'><form id='qg1Yq'><ins id='qg1Yq'></ins><ul id='qg1Yq'></ul><sub id='qg1Yq'></sub></form><legend id='qg1Yq'></legend><bdo id='qg1Yq'><pre id='qg1Yq'><center id='qg1Yq'></center></pre></bdo></b><th id='qg1Yq'></th></span></q></dt></tr></i><div id='qg1Yq'><tfoot id='qg1Yq'></tfoot><dl id='qg1Yq'><fieldset id='qg1Yq'></fieldset></dl></div>
                          <tbody id='qg1Yq'></tbody>
                          <bdo id='qg1Yq'></bdo><ul id='qg1Yq'></ul>