您的位置:首页 > 运维架构

System.getProperty()参数大全

2008-08-26 14:50 267 查看
show(System.getProperty("java.version"));// Java Runtime Environment version
show(System.getProperty("java.vendor"));// Java Runtime Environment vendor
show(System.getProperty("java.vendor.url"));// Java vendor URL
show(System.getProperty("java.home"));// Java installation directory
show(System.getProperty("java.vm.specification.version"));// Java Virtual Machine specification version
show(System.getProperty("java.vm.specification.vendor"));// Java Virtual Machine specification vendor
show(System.getProperty("java.vm.specification.name"));// Java Virtual Machine specification name
show(System.getProperty("java.vm.version"));// Java Virtual Machine implementation version
show(System.getProperty("java.vm.vendor"));// Java Virtual Machine implementation vendor
show(System.getProperty("java.vm.name"));// Java Virtual Machine implementation name
show(System.getProperty("java.specification.version"));// Java Runtime Environment specification version
show(System.getProperty("java.specification.vendor"));// Java Runtime Environment specification vendor
show(System.getProperty("java.specification.name"));// Java Runtime Environment specification name
show(System.getProperty("java.class.version"));// Java class format version number
show(System.getProperty("java.class.path"));// Java class path
show(System.getProperty("java.library.path"));// List of paths to search when loading libraries
show(System.getProperty("java.io.tmpdir"));// Default temp file path
show(System.getProperty("java.compiler"));// Name of JIT compiler to use
show(System.getProperty("java.ext.dirs"));// Path of extension directory or directories
show(System.getProperty("os.name"));// Operating system name
show(System.getProperty("os.arch"));// Operating system architecture
show(System.getProperty("os.version"));// Operating system version
show(System.getProperty("file.separator"));// File separator ("/" on UNIX)
show(System.getProperty("path.separator"));// Path separator (":" on UNIX)
show(System.getProperty("line.separator"));// Line separator ("/n" on UNIX)
show(System.getProperty("user.name"));// User's account name
show(System.getProperty("user.password"));// User's home directory
show(System.getProperty("user.home"));// User's home directory
show(System.getProperty("user.dir"));// User's current working directory
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: