- System.out.println("java.version" + "====>" + System.getProperty("java.version"));
- System.out.println("java.vendor" + "====>" + System.getProperty("java.vendor"));
- System.out.println("java.vendor.ur" + "====>" + System.getProperty("java.vendor.ur"));
- System.out.println("java.home" + "====>" + System.getProperty("java.home"));
- 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.specification.version" + "====>" + System.getProperty("java.specification.version"));
- System.out.println("java.specification.vendor" + "====>" + System.getProperty("java.specification.vendor"));
- System.out.println("java.specification.name" + "====>" + System.getProperty("java.specification.name"));
- 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("java.library.path" + "====>" + System.getProperty("java.library.path"));
- System.out.println("java.io.tmpdir" + "====>" + System.getProperty("java.io.tmpdir"));
- System.out.println("java.compiler" + "====>" + System.getProperty("java.compiler"));
- System.out.println("java.ext.dirs" + "====>" + System.getProperty("java.ext.dirs"));
- System.out.println("os.name Operating" + "====>" + System.getProperty("os.name Operating"));
- System.out.println("os.arch Operating" + "====>" + System.getProperty("os.arch Operating"));
- System.out.println("os.version Operating" + "====>" + System.getProperty("os.version Operating"));
- 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"));
- 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"));
- 以下は結果です
- java.version====>1.6.0
- java.vendor====>Sun Microsystems Inc.
- java.vendor.ur====>null
- java.home====>C:/Program Files/Java/jdk1.6.0/jre
- 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.6.0-b105
- java.vm.vendor====>Sun Microsystems Inc.
- java.vm.name====>Java HotSpot(TM) Client VM
- java.specification.version====>1.6
- java.specification.vendor====>Sun Microsystems Inc.
- java.specification.name====>Java Platform API Specification
- java.class.version====>50.0
- java.class.path====>D:/work/filetest
- java.library.path====>C:/Program Files/Java/jdk1.6.0/bin;.;C:/WINDOWS/Sun/Java/bin;C:/WINDOWS/system32;C:/WINDOWS;C:/Program Files/Java/jdk1.6.0/bin;C:/WINDOWS/system32;C:/WINDOWS;C:/WINDOWS/System32/Wbem;"C:/Program Files/Symantec/Norton Ghost 2003/";C:/Program Files/Microsoft SQL Server/90/Tools/binn/
- java.io.tmpdir====>C:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/
- java.compiler====>null
- java.ext.dirs====>C:/Program Files/Java/jdk1.6.0/jre/lib/ext;C:/WINDOWS/Sun/Java/lib/ext
- os.name Operating====>null
- os.arch Operating====>null
- os.version Operating====>null
- file.separator====>/
- path.separator====>;
- line.separator====>
- user.name====>Administrator
- user.home====>C:/Documents and Settings/Administrator
- user.dir====>D:/work/filetest
System.getProperty
最新推荐文章于 2023-03-26 10:32:44 发布