`
jayjayjaylun
  • 浏览: 87159 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

Standard System Properties

    博客分类:
  • java
阅读更多

Here are the properties that displayed on my system.

awt.toolkit=sun.awt.windows.WToolkit
file.encoding=Cp1252
file.encoding.pkg=sun.io
file.separator=\
java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
java.awt.printerjob=sun.awt.windows.WPrinterJob
java.class.path=.;c:\classpath\com.fredswartz.utilities.jar;c:\classpath\TableLayout.jar;c:\classpath\swixml.jar;c:\classpath\jdom.jar;c:\classpath\pmd-1.8\lib\pmd-1.8.jar;C:\classpath\pmd-1.8\lib\jaxen-core-1.0-fcs.jar;C:\classpath\com.fredswartz.guiUtils.jar;C:\classpath\com.fredswartz.fmt-0.7.jar;C:\Program Files\IBM\Cloudscape_10.0\lib\derby.jar
java.class.version=49.0
java.endorsed.dirs=C:\Program Files\Java\jdk1.5.0_01\jre\lib\endorsed
java.ext.dirs=C:\Program Files\Java\jdk1.5.0_01\jre\lib\ext
java.home=C:\Program Files\Java\jdk1.5.0_01\jre
java.io.tmpdir=C:\DOCUME~1\Owner\LOCALS~1\Temp\
java.library.path=C:\Program Files\Java\jdk1.5.0_01\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\Python22;C:\Program Files\PC-Doctor for Windows\services;c:\ant\bin;c:\Program Files\Java\jdk\bin;c:\Program Files\Java\jdk\jre\javaws;C:\Program Files\Sybase\Adaptive Server Anywhere 6.0\win32;c:\classpath\jcsc/bin;c:\classpath\jcsc\bin;C:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT;C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual Studio\Common\Tools;C:\Program Files\Microsoft Visual Studio\VC98\bin
java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
java.runtime.version=1.5.0_01-b08
java.specification.name=Java Platform API Specification
java.specification.vendor=Sun Microsystems Inc.
java.specification.version=1.5
java.vendor=Sun Microsystems Inc.
java.vendor.url=http://java.sun.com/
java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi
java.version=1.5.0_01
java.vm.info=mixed mode, sharing
java.vm.name=Java HotSpot(TM) Client VM
java.vm.specification.name=Java Virtual Machine Specification
java.vm.specification.vendor=Sun Microsystems Inc.
java.vm.specification.version=1.0
java.vm.vendor=Sun Microsystems Inc.
java.vm.version=1.5.0_01-b08
line.separator=

os.arch=x86
os.name=Windows XP
os.version=5.1
path.separator=;
sun.arch.data.model=32
sun.boot.class.path=C:\Program Files\Java\jdk1.5.0_01\jre\lib\rt.jar;C:\Program Files\Java\jdk1.5.0_01\jre\lib\i18n.jar;C:\Program Files\Java\jdk1.5.0_01\jre\lib\sunrsasign.jar;C:\Program Files\Java\jdk1.5.0_01\jre\lib\jsse.jar;C:\Program Files\Java\jdk1.5.0_01\jre\lib\jce.jar;C:\Program Files\Java\jdk1.5.0_01\jre\lib\charsets.jar;C:\Program Files\Java\jdk1.5.0_01\jre\classes
sun.boot.library.path=C:\Program Files\Java\jdk1.5.0_01\jre\bin
sun.cpu.endian=little
sun.cpu.isalist=pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
sun.desktop=windows
sun.io.unicode.encoding=UnicodeLittle
sun.jnu.encoding=Cp1252
sun.management.compiler=HotSpot Client Compiler
sun.os.patch.level=Service Pack 2
user.country=US
user.dir=C:\0www-workingnotes\notes-java-working\io\30properties_and_preferences\40sysprops\SysPropList
user.home=C:\Documents and Settings\Owner
user.language=en
user.name=Owner
user.timezone=
user.variant=



Property Name 	Description 	Java Version

file.encoding 	The character encoding for the default locale 	1.1
file.encoding.pkg 	The package that contains the converters that handle converting between local encodings and Unicode 	1.1
file.separator 	The platform-dependent file separator (e.g., "/" on UNIX, "\" for Windows) 	1.0
java.class.path 	The value of the CLASSPATH environment variable 	1.0
java.class.version 	The version of the Java API 	1.0
java.compiler 	The 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.home 	The directory in which Java is installed 	1.0
java.io.tmpdir 	The directory in which java should create temporary files 	1.2
java.version 	The version of the Java interpreter 	1.0
java.vendor 	A vendor-specific string 	1.0
java.vendor.url 	A vendor URL 	1.0
line.separator 	The platform-dependent line separator (e.g., "\n" on UNIX, "\r\n" for Windows) 	1.0
os.name 	The name of the operating system 	1.0
os.arch 	The system architecture 	1.0
os.version 	The operating system version 	1.0
path.separator 	The platform-dependent path separator (e.g., ":" on UNIX, "," for Windows) 	1.0
user.dir 	The current working directory when the properties were initialized 	1.0
user.home 	The home directory of the current user 	1.0
user.language 	The two-letter language code of the default locale 	1.1
user.name 	The username of the current user 	1.0
user.region 	The two-letter country code of the default locale 	1.1
user.timezone 	The default time zone 	1.1
  

// File: io/properties/SysPropList.java
// Description: Shows system properties.  This must be an application.
//              An applet can't get this information.
// Author: Fred Swartz
// Date:   2 Feb 2005

import java.awt.*;
import javax.swing.*;
import java.util.*;

/** Generic main program. */
public class SysPropList {
    public static void main(String[] args) {
        JFrame window = new JFrame("System Properties");
        window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        window.setContentPane(new SysPropListGUI());
        window.pack();
        window.setVisible(true);
    }
}

/** Panel to display the (limited) GUI intereface. */
class SysPropListGUI extends JPanel {
    JTextArea m_propertiesTA = new JTextArea(20, 40);

    /** Constructor sets layout, adds component(s), sets values*/
    public SysPropListGUI() {
        this.setLayout(new BorderLayout());
        this.add(new JScrollPane(m_propertiesTA), BorderLayout.CENTER);

        //... Add property list data to text area.
        Properties pr = System.getProperties();
        TreeSet propKeys = new TreeSet(pr.keySet());  // TreeSet sorts keys
        for (Iterator it = propKeys.iterator(); it.hasNext(); ) {
            String key = (String)it.next();
            m_propertiesTA.append("" + key + "=" + pr.get(key) + "\n");
        }
    }
}



代理
FtpProxySet=true|false 如果代理被用ftp链接 设置为treu
FtpProxyHost=主机名 被用于FTP链接的代理服务器的主机地址
FtpProxyPort=端口号 被用于FTP链接的指定主机名使用的端口

gopherProxySet=true|false 如果代理被用于Gopher链接设置为true
gopherProxyHost==主机名 被用于Gopher链接的代理服务器的主机地址
gopherProxyPort=端口号 被用于Gopher链接的指定主机名使用的端口

http.proxySet=true|false 如果代理被用户HTTP链接,则设为true
http.proxyHost==主机名 被用于HTTP链接的代理服务器的主机地址
http.proxyPort=端口号 被用于HTTP链接的指定主机名使用的端口
https.proxySet=true|false 如果代理被用户HTTPS链接,则设为true
https.proxyHost==主机名 被用于HTTPS链接的代理服务器的主机地址
https.proxyPort=端口号 被用于HTTPS链接的指定主机名使用的端口 



java -Ddemo=sadasdsad 設置參數 -Dos.name=sadjas改變參數
分享到:
评论

相关推荐

    Optical System Design

    Testing with the Standard 1951 U.S. Air Force Target 333 The Modulation Transfer Function 337 Interferometry 340 Other Tests 344 Chapter 16. Tolerancing and Producibility 347 Introduction 347 What Are...

    Google C++ International Standard.pdf

    7 Standard conversions 86 7.1 Lvalue-to-rvalue conversion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87 7.2 Array-to-pointer conversion . . . . . . . . . . . . . . . . . . ....

    C++标准(Standard for Programming Language C++)

    18.3 Implementation properties 18.4 Integer types 18.5 Start and termination 18.6 Dynamic memory management CONTENTS v c ISO/IEC N3000=09-0190 18.7 Type identification 18.8 Exception handling ...

    javamail 源码

    The JavaMail API also supports several System properties; see the {@link javax.mail.internet} package documentation for details. The JavaMail reference implementation from Sun includes protocol ...

    CORBA简单教程(摘自sun microsystem)

    一个介绍在java中使用corba的...System Properties VisiBroker 3.x VisiBroker Tools Using VisiBroker with Java 2 Portable Stubs and Skeletons Using the BOA with VisiBroker Using the VisiBroker Smart Agent

    OMG 系统建模语言 (OMG SysML™) 1.6.pdf 英文版

    system properties to support engineering analysis. The language is intended to support multiple processes and methods such as structured, object-oriented, and others, but each methodology may impose ...

    Picture Transfer Protocol (PTP)

    The requirements include standard image referencing behavior, operations, responses, events, device properties, datasets, and data formats to ensure interoperability. This standard also ...

    linuxdeploy-2.1.0-237.apk

    This application is open ... The password can be changed through "Properties -> User password" or standard OS tools (passwd, vncpasswd). The app is available for download in Google Play and GitHub.

    CSharp 3.0 With the .NET Framework 3.5 Unleashed(english)

    Standard Query Operators 456 Summary 468 20 Managing Data with ADO.NET 470 ADO.NET Architecture 470 Making Connections 474 Viewing Data 476 Manipulating Data 479 Calling Stored ...

    Model Transformation for Cyber Physical Systems

    Cyber Physical Systems(CPS) are composed with discrete and continuous dynamics. Traditional modeling techniques can’t...way to unify the CPS model that helps to verify the properties of the whole model.

    GObject Reference Manual

    Parameters and Values - Standard Parameter and Value Types Varargs Value Collection - Converting varargs to generic values GParamSpec - Metadata for parameter specifications Signals - A means for ...

    联想旭日420AXP系统芯片组驱动

    Click on the General system properties tab. f. Verify which OS has been installed by reading the System information. 3. It is recommended that the software be installed on systems with at least...

    Delphi2010皮肤控件AlphaControls6.21FS

    + ShowWeeks and ShowTodayBtn properties was added in TsDateEdit and TsMonthCalendar controls + Added popup menu for selecting years and monthes in the TsMonthCalendar component + Many TMS controls ...

    ArcGIS支持的系统和数据库.doc

    "Display "24 bit color depth " "Properties " " "Screen "1024 x 768 recommended or higher at Normal size " "Resolution "(96dpi) " "Swap Space "Determined by the operating system, 500 MB minimum....

    UG6.0快捷键大全

    SYNONYMS notes, fonts, text, appearance, look, properties BITMAP annotation_style POPUP_LABEL St&yle... POPUP_MESSAGE Edits the style of the selected annotations or views. ACTIONS STANDARD ...

    The KDevelop Programming Handbook

    The KDE File System Standard 13.1. Introduction 13.2. Directory Layout 13.3. What does this mean to application developers? 13.4. Application Documentation 13.5. What does this mean to...

    Fonts & Encodings

    Learn about existing tools for creating (or modifying) fonts, including FontLab and FontForge, and become familiar with OpenType properties and AAT fonts. Nowhere else will you find the valuable ...

    Robust Optimization Design in MEMS

    techniques have poor dimensional tolerances and material properties at the microscale are not well characterized. The robust design problem we pose is to minimize the expected variance between the ...

    Photon Rally Tutorial 1.1.0.unitypackage

    Realistic physics based on standard colliders, wheel-colliders and rigidbody. Detailed suspension movement. Real-time race synchronization over the internet using PUN (Photon Unity Network). Dead-...

    VB.NET Developer's Guide(4574).pdf

    standard. An XML document has at least one element that is delimited with one start tag and one end tag. XML documents are similar to HTML, except that the tags are made up by the author. 153_VBnet_...

Global site tag (gtag.js) - Google Analytics