码迷,mamicode.com
首页 > 编程语言 > 详细

java System属性列表

时间:2014-11-08 11:41:25      阅读:228      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   io   color   ar   os   java   sp   

http://blog.csdn.net/bryanliu1982/article/details/5205636 比如获取windows登录用户主目录
String usreHome = System.getProperty("user.home");
 
 
下面是System的属性列表

Key                     Meaning
-------------------     ------------------------------
"file.separator"        File separator (e.g., "/")
"java.class.path"       Java classpath
"java.class.version"    Java class version number
"java.home"             Java installation directory
"java.vendor"           Java vendor-specific string

"java.vendor.url"       Java vendor URL
"java.version"          Java version number
"line.separator"        Line separator
"os.arch"               Operating system architecture
"os.name"               Operating system name

"path.separator"        Path separator (e.g., ":")
"user.dir"              User‘s current working directory
"user.home"             User home directory
"user.name"             User account name

java System属性列表

标签:style   blog   http   io   color   ar   os   java   sp   

原文地址:http://www.cnblogs.com/svennee/p/4082867.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!