本文介绍了在 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设置者:
- 读取注册表项的值:
HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerShell FoldersDesktop - 取该值的父路径,但不解析环境变量.
- Read the registry value for key:
HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerShell FoldersDesktop - 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"?系统属性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!
The End


大气响应式网络建站服务公司织梦模板
高端大气html5设计公司网站源码
织梦dede网页模板下载素材销售下载站平台(带会员中心带筛选)
财税代理公司注册代理记账网站织梦模板(带手机端)
成人高考自考在职研究生教育机构网站源码(带手机端)
高端HTML5响应式企业集团通用类网站织梦模板(自适应手机端)