`
jayjayjaylun
  • 浏览: 90012 次
  • 性别: 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改變參數
分享到:
评论

相关推荐

    layoutlib.jar

    Systemproperties类在android.os下,但这个类是隐藏的,设置系统属性调用 SystemProperties可以通过添加jar,得到相关调用

    File System Service Provider

    在Java Standard Edition (Java SE) 平台中,Java Naming and Directory Interface (JNDI) 是一个关键的API,它为应用程序提供了统一的方式来查找和管理命名和目录服务。JNDI本身并不提供实际的服务,而是作为一个...

    Google C++ International Standard.pdf

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

    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 ...

    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 ...

    java项目上红叉报错的解决方法.doc

    在Eclipse中设置JRE System Library的步骤是:右键单击Java项目,选择Properties,然后找到Java Build Path,点击Libraries,向下滚动找到JRE System Library,单击Edit按钮。然后,选择Alternate JRE,点击...

    C# Json转换DataTable源文件

    首先,要完成Json到DataTable的转换,我们需要使用到两个关键的.NET库:System.Json(对于.NET Framework)或Newtonsoft.Json(对于.NET Core和.NET Standard)。在.NET Framework中,System.Json是内置的,而在.NET...

    DJNativeSwing-SWT-1-0-2-20110827.zip

    SystemProperties.txt 和 SystemProperties-SWT.txt 可能包含了关于系统属性和环境设置的相关信息;DJNativeSwing-SWT.jar 和 DJNativeSwing.jar 是核心库文件,可以直接在 Java 项目中引入;lib 文件夹可能包含了库...

    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.

    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.

    DJNative-SWT20111120 java播放器插件最新版

    5. SystemProperties-SWT.txt、SystemProperties.txt - 可能包含了关于系统属性的信息,这些信息可能与SWT或DJNative插件的配置和运行有关。 6. readme-SWT.txt、readme.txt - 读我文件,通常包含安装、配置和使用...

    DJNativeSwing-SWT.zip_DJNativeSwing_DJNativeSwing-SWT

    5. SystemProperties-SWT.txt 和 SystemProperties.txt - 可能包含与库相关的系统属性信息,帮助开发者理解和配置环境。 6. readme-SWT.txt 和 readme.txt - 提供了库的使用指南和注意事项,是开始使用库的首要参考...

    java集成浏览器flash等带源码

    5. SystemProperties-SWT.txt 和 SystemProperties.txt:可能包含了关于SWT和Java系统属性的信息,用于调试和配置。 6. readme-SWT.txt 和 readme.txt:提供了关于组件库的基本使用指南和注意事项。 7. readme-SWT....

    DJNativeSwing-SWT-1-0-3-20191112.zip

    4. **changelog-SWT.txt, SystemProperties-SWT.txt, readme-SWT.txt** - 这些文件提供了SWT相关的更新日志、系统属性信息和使用指南。 5. **SystemProperties.txt, readme.txt, changelog.txt** - 对应于...

    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...

    jdic的插件

    6. **SystemProperties-SWT.txt, SystemProperties.txt** - 可能包含了关于系统属性的信息,特别是在SWT和JDIC环境下。 7. **readme-SWT.txt, readme.txt** - 说明文件,提供了使用这些库的基本指南和注意事项。 ...

    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 ...

    swt源码和jar包dj-native-swing-swt.jar

    "licence.txt"包含了库的授权信息,"SystemProperties-SWT.txt"和"SystemProperties.txt"可能记录了SWT库在不同系统上的属性。"readme-SWT.txt"和"readme.txt"是说明文件,提供了关于如何使用这些库的指导。"lib...

Global site tag (gtag.js) - Google Analytics