`
laobian
  • 浏览: 1332 次
  • 性别: Icon_minigender_1
  • 来自: 上海
最近访客 更多访客>>
社区版块
存档分类
最新评论

To see java system's properties

阅读更多

Properties pro = System.getProperties();
        Set<Object> keys = pro.keySet();
        
        Iterator<Object> kit = keys.iterator();
        while(kit.hasNext()){
        	Object knext = kit.next();
        	System.out.print(knext.toString()+" = ");
        	System.out.println((pro.getProperty(knext.toString())));
        }

results in my own machine:

java.runtime.name = Java(TM) 2 Runtime Environment, Standard Edition
sun.boot.library.path = C:\Program Files\Java\jdk1.5.0_06\jre\bin
java.vm.version = 1.5.0_06-b05
java.vm.vendor = Sun Microsystems Inc.
java.vendor.url = http://java.sun.com/
path.separator = ;
java.vm.name = Java HotSpot(TM) Client VM
file.encoding.pkg = sun.io
user.country = US
sun.os.patch.level =
java.vm.specification.name = Java Virtual Machine Specification
user.dir = D:\workspace\Test\src
java.runtime.version = 1.5.0_06-b05
java.awt.graphicsenv = sun.awt.Win32GraphicsEnvironment
java.endorsed.dirs = C:\Program Files\Java\jdk1.5.0_06\jre\lib\endorsed
os.arch = x86
java.io.tmpdir = C:\Users\MANTIS~1\AppData\Local\Temp\
line.separator =

java.vm.specification.vendor = Sun Microsystems Inc.
user.variant =
os.name = Windows NT (unknown)
sun.jnu.encoding = Cp1252
java.library.path = C:\Program Files\Java\jdk1.5.0_06\bin;.;C:\Windows\system32;C:\Windows;C:\Program Files\Java\jdk1.5.0_06\bin;C:\oracle\product\10.1.0\db_1\jre\1.4.2\bin;C:\oracle\product\10.1.0\db_1\bin;C:\oracle\product\10.1.0\db_1\jre\1.4.2\bin\client;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\CA\SharedComponents\ScanEngine;C:\Program Files\CA\SharedComponents\CAUpdate\;C:\Program Files\CA\SharedComponents\ThirdParty\;C:\Program Files\CA\SharedComponents\SubscriptionLicense\;C:\Program Files\CA\eTrustITM;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\
java.specification.name = Java Platform API Specification
java.class.version = 49.0
sun.management.compiler = HotSpot Client Compiler
os.version = 6.1
user.home = C:\Users\Mantis_Bian
user.timezone =
java.awt.printerjob = sun.awt.windows.WPrinterJob
file.encoding = Cp1252
java.specification.version = 1.5
java.class.path = .
user.name = Mantis_Bian
java.vm.specification.version = 1.0
java.home = C:\Program Files\Java\jdk1.5.0_06\jre
sun.arch.data.model = 32
user.language = en
java.specification.vendor = Sun Microsystems Inc.
awt.toolkit = sun.awt.windows.WToolkit
java.vm.info = mixed mode, sharing
java.version = 1.5.0_06
java.ext.dirs = C:\Program Files\Java\jdk1.5.0_06\jre\lib\ext
sun.boot.class.path = C:\Program Files\Java\jdk1.5.0_06\jre\lib\rt.jar;C:\Program Files\Java\jdk1.5.0_06\jre\lib\i18n.jar;C:\Program Files\Java\jdk1.5.0_06\jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.5.0_06\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.5.0_06\jre\lib\jce.jar;C:\Program Files\Java\jdk1.5.0_06\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.5.0_06\jre\classes
java.vendor = Sun Microsystems Inc.
file.separator = \
java.vendor.url.bug = http://java.sun.com/cgi-bin/bugreport.cgi
sun.io.unicode.encoding = UnicodeLittle
sun.cpu.endian = little
sun.desktop = windows
sun.cpu.isalist = pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
分享到:
评论

相关推荐

    Java实现的properties文件动态修改并自动保存工具类

    Apache Common-Configuration是一个功能强大的配置文件处理工具,可以从 Properties文件、XML文件、JNDI、JDBC数据源、System Properties、Applet parameters、Servlet Parameters等读取相应信息。通过使用commons-...

    java7帮助文档

    see the xrender flag in System Properties for Java 2D Technology. The JDK now enumerates and displays installed OpenType/CFF fonts through methods such as GraphicsEnvironment....

    Java邮件开发Fundamentals of the JavaMail API

    SMTP server will relay the message on to the SMTP server of the recipient(s) to eventually be acquired by the user(s) through POP or IMAP. This does not require your SMTP server to be an open relay,...

    Addison.Wesley.The.Java.Programming.Language.4th.Edition.Aug.2005.chm

    For other references, see "Further Reading" on page 755. &lt;br&gt;This fourth edition provides integrated coverage of the Java programming language as provided by the Java™ 2 Platform Standard Edition...

    UE(官方下载)

    A question we often see is "I have a lot of blank lines in my file and I don't want to go through and manually delete them. Is there an easier way to do this?" The answer is: yes! Configure FTP Set up...

    ebook-flutter-revolution.pdf

    To configure the Flutter SDK on Windows, you need to add the Flutter bin directory to your system's `PATH` variable. This can be done through the System Properties dialog or by editing the environment...

    带注释的Bootstrap.java

    * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding ...

    CE中文版-启点CE过NP中文.exe

    启点CE过NP中文December 24 2018:Cheat Engine 6.8.2 Released: Here's a new version for the hollidays....Added an option to the processlist to filter out system processes Added a system...

    VB编程资源大全(英文源码 控制)

    1.x/6.0 (Java) &lt;END&gt;&lt;br&gt;6 , ocxex.zip "This is a quick example I made to show you how to use Events and properties in a OCX."&lt;END&gt;&lt;br&gt;7 , news.exe This control aids as a complete Newsgroup ...

    VB编程资源大全(英文源码 网络)

    Lagmeter.zip This Will Allow You To See A Visual Representation Of The Latency of Your Local Machines IP. A.k.a Lag Meter&lt;END&gt;&lt;br&gt;25 , mailcheck.zip Mail Checker Sample Application. Create your...

    hibernate.properties

    # See the lgpl.txt file in the root directory or &lt;http://www.gnu.org/licenses/lgpl-2.1.html&gt;. # ###################### ### Query Language ### ###################### ## define query language ...

    SMSLib(短信猫)的开发与配置jar包合集

    3. 将javax.comm.properties放置在%JAVA_HOME%/jar/lib下 再试试SMSLib自带的examples,看看效果。 3. pci接口安装drive 程序测试用例: package examples.modem; import org.smslib....

    Netron3X.zip

    /// Initializes a new instance of the &lt;see cref="T:ConnectionBase"/&gt; class. /// /// &lt;param name="from"&gt;From. /// &lt;param name="to"&gt;To. protected ConnectionBase(Point from, Point to) : base() { ...

    cuteEditor6.0

    set the controls width, disable image uploading and deleting, restrict access to the source/preview tabs, hide buttons and lists that you don't want your clients to see or access. 支持...

    Spring.Boot.in.Action.2015.12.pdf

    It's not surprising to see the author of mannings venerable Spring in Action take on the challenge of concisely distilling the core aspects of working with Spring Boot into another cogent book. Nor is...

Global site tag (gtag.js) - Google Analytics