java 通过 System 获取系统 属性列表

本文详细介绍了Java运行环境中标准系统属性的名称及描述,包括字符编码、文件分隔符、Java安装路径等关键配置项。

Standard System Properties

Property NameDescriptionJava Version
file.encodingThe character encoding for the default locale1.1
file.encoding.pkgThe package that contains the converters that handle converting between local encodings and Unicode1.1
file.separatorThe platform-dependent file separator (e.g., "/" on UNIX, "\" for Windows)1.0
java.class.pathCLASSHATH 环境变量的值1.0
java.class.versionJava API 的版本号1.0
java.compilerThe just-in-time compiler to use, if any. The java interpreter provided with the JDK initializes this property from the environment variable JAVA_COMPILER.1.0
java.homeJava 被安装的路径1.0
java.io.tmpdirJava 创建的暂存文件路径1.2
java.versionThe version of the Java interpreter1.0
java.vendorA vendor-specific string1.0
java.vendor.urlA vendor URL1.0
line.separatorThe platform-dependent line separator (e.g., "\n" on UNIX, "\r\n" for Windows)1.0
os.name操作系统的名字1.0
os.arch系统的架构1.0
os.version操作系统的版本1.0
path.separatorThe platform-dependent path separator (e.g., ":" on UNIX, "," for Windows)1.0
user.dir当属性被初始化后,当前的工作目录1.0
user.home当前用户的目录1.0
user.languageThe two-letter language code of the default locale1.1
user.name当前用户名1.0
user.regionThe two-letter country code of the default locale1.1
user.timezone默认的时区1.1
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值