System.getProperty()应用

public static void main(String[] args)
{
System.out.println("java_vendor:" + System.getProperty("java.vendor"));
System.out.println("java_vendor_url:" + System.getProperty("java.vendor.url"));
System.out.println("java_home:" + System.getProperty("java.home"));
System.out.println("java_class_version:" + System.getProperty("java.class.version"));
System.out.println("java_class_path:" + System.getProperty("java.class.path"));
System.out.println("os_name:" + System.getProperty("os.name"));
System.out.println("os_arch:" + System.getProperty("os.arch"));
System.out.println("os_version:" + System.getProperty("os.version"));
System.out.println("user_name:" + System.getProperty("user.name"));
System.out.println("user_home:" + System.getProperty("user.home"));
System.out.println("user_dir:----" + System.getProperty("user.dir"));
System.out.println("java_vm_specification_version:" + System.getProperty("java.vm.specification.version"));
System.out.println("java_vm_specification_vendor:" + System.getProperty("java.vm.specification.vendor"));
System.out.println("java_vm_specification_name:" + System.getProperty("java.vm.specification.name"));
System.out.println("java_vm_version:" + System.getProperty("java.vm.version"));
System.out.println("java_vm_vendor:" + System.getProperty("java.vm.vendor"));
System.out.println("java_vm_name:" + System.getProperty("java.vm.name"));
System.out.println("java_ext_dirs:" + System.getProperty("java.ext.dirs"));
System.out.println("file_separator:" + System.getProperty("file.separator"));
System.out.println("path_separator:" + System.getProperty("path.separator"));
System.out.println("line_separator:" + System.getProperty("line.separator"));

}

----------------------------------------------------------------
java_vendor:Sun Microsystems Inc.
java_vendor_url:http://java.sun.com/
java_home:C:\Java\jdk\jre
java_class_version:49.0
java_class_path:C:\org3.222\workspace\query\WebRoot\WEB-INF\classes;C:\org3.222\workspace\query\WebRoot\WEB-INF\lib\mysql-connector-java-5.0.0-beta-bin.jar;C:\org3.222\eclipse\plugins\com.genuitec.org.hibernate.eclipse_5.5.0\myeclipse-data\3.1\lib\antlr-2.7.6rc1.jar;C:\org3.222\eclipse\plugins\com.genuitec.org.hibernate.eclipse_5.5.0\myeclipse-data\3.0\lib\asm.jar;C:\org3.222\eclipse\plugins\com.genuitec.org.hibernate.eclipse_5.5.0\myeclipse-data\3.0\lib\asm-attrs.jar;C:\org3.222\eclipse\plugins\com.genuitec.org.hibernate.eclipse_5.5.0\myeclipse-data\3.1\lib\cglib-2.1.3.jar;C:\org3.222\eclipse\plugins\com.genuitec.org.hibernate.eclipse_5.5.0\myeclipse-data\3.0\lib\commons-collections-2.1.1.jar;C:\org3.222\eclipse\plugins\com.genuitec.org.hibernate.eclipse_5.5.0\myeclipse-data\3.0\lib\commons-logging-1.0.4.jar;C:\org3.222\eclipse\plugins\com.genuitec.org.hibernate.eclipse_5.5.0\myeclipse-data\3.1\lib\dom4j-1.6.1.jar;C:\org3.222\eclipse\plugins\com.genuitec.org.hibernate.eclipse_5.5.0\myeclipse-data\3.0\lib\ehcache-1.1.jar;C:\org3.222\eclipse\plugins\com.genuitec.org.hibernate.eclipse_5.5.0\myeclipse-data\3.1\lib\hibernate3.jar;C:\org3.222\eclipse\plugins\com.genuitec.org.hibernate.eclipse_5.5.0\myeclipse-data\3.0\lib\jaas.jar;C:\org3.222\eclipse\plugins\com.genuitec.org.hibernate.eclipse_5.5.0\myeclipse-data\3.1\lib\jaxen-1.1-beta-7.jar;C:\org3.222\eclipse\plugins\com.genuitec.org.hibernate.eclipse_5.5.0\myeclipse-data\3.0\lib\jdbc2_0-stdext.jar;C:\org3.222\eclipse\plugins\com.genuitec.org.hibernate.eclipse_5.5.0\myeclipse-data\3.0\lib\jta.jar;C:\org3.222\eclipse\plugins\com.genuitec.org.hibernate.eclipse_5.5.0\myeclipse-data\3.1\lib\log4j-1.2.11.jar;C:\org3.222\eclipse\plugins\com.genuitec.org.hibernate.eclipse_5.5.0\myeclipse-data\3.0\lib\xerces-2.6.2.jar;C:\org3.222\eclipse\plugins\com.genuitec.org.hibernate.eclipse_5.5.0\myeclipse-data\3.0\lib\xml-apis.jar;C:\org3.222\workspace\query\WebRoot\WEB-INF\lib\derbyclient.jar;C:\org3.222\workspace\query\WebRoot\WEB-INF\lib\jsf-api.jar;C:\org3.222\workspace\query\WebRoot\WEB-INF\lib\cleanimports.jar;C:\org3.222\workspace\query\WebRoot\WEB-INF\lib\commons-collections-2.1.1.jar;C:\org3.222\workspace\query\WebRoot\WEB-INF\lib\commons-logging-1.0.4.jar;C:\org3.222\workspace\query\WebRoot\WEB-INF\lib\concurrent-1.3.2.jar;C:\org3.222\workspace\query\WebRoot\WEB-INF\lib\connector.jar;C:\org3.222\workspace\query\WebRoot\WEB-INF\lib\dom4j-1.6.jar;C:\org3.222\workspace\query\WebRoot\WEB-INF\lib\ehcache-1.1.jar;C:\org3.222\workspace\query\WebRoot\WEB-INF\lib\jaas.jar;C:\org3.222\workspace\query\WebRoot\WEB-INF\lib\jacc-1_0-fr.jar;C:\org3.222\workspace\query\WebRoot\WEB-INF\lib\jaxen-1.1-beta-4.jar;C:\org3.222\workspace\query\WebRoot\WEB-INF\lib\jdbc2_0-stdext.jar;C:\org3.222\workspace\query\WebRoot\WEB-INF\lib\jta.jar;C:\org3.222\workspace\query\WebRoot\WEB-INF\lib\oscache-2.1.jar;C:\org3.222\workspace\query\WebRoot\WEB-INF\lib\proxool-0.8.3.jar;C:\org3.222\workspace\query\WebRoot\WEB-INF\lib\swarmcache-1.0rc2.jar;C:\org3.222\workspace\query\WebRoot\WEB-INF\lib\xml-apis.jar;C:\org3.222\workspace\query\WebRoot\WEB-INF\lib\jgroups-2.2.8.jar;C:\org3.222\workspace\query\WebRoot\WEB-INF\lib\log4j-1.2.11.jar;C:\org3.222\workspace\query\WebRoot\WEB-INF\lib\charsets.jar;C:\org3.222\workspace\query\WebRoot\WEB-INF\lib\dnsns.jar;C:\org3.222\workspace\query\WebRoot\WEB-INF\lib\jce.jar;C:\org3.222\workspace\query\WebRoot\WEB-INF\lib\jsse.jar;C:\org3.222\workspace\query\WebRoot\WEB-INF\lib\localedata.jar;C:\org3.222\workspace\query\WebRoot\WEB-INF\lib\plugin.jar;C:\org3.222\workspace\query\WebRoot\WEB-INF\lib\rt.jar
os_name:Windows 2003
os_arch:x86
os_version:5.2
user_name:Administrator
user_home:C:\Documents and Settings\Administrator
user_dir:----C:\org3.222\workspace\query
java_vm_specification_version:1.0
java_vm_specification_vendor:Sun Microsystems Inc.
java_vm_specification_name:Java Virtual Machine Specification
java_vm_version:1.5.0_04-b05
java_vm_vendor:Sun Microsystems Inc.
java_vm_name:Java HotSpot(TM) Client VM
java_ext_dirs:C:\Java\jdk\jre\lib\ext
file_separator:\
path_separator:;
line_separator:
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值