System. getproperty () parameters in Java

Source: Internet
Author: User
Tags file separator

In Java, the system. getproperty () parameter is as follows:


Java. Version JavaRuntime Environment version
Java. Vendor JavaRuntime Environment vendor
Java. Vendor. url JavaVendor URL
Java. Home JavaInstallation Directory
Java. VM. Specification. Version JavaVirtual Machine Specification Version
Java. VM. Specification. Vendor JavaVirtual Machine specification vendor
Java. VM. Specification. Name JavaVirtual Machine specification name
Java. VM. Version JavaVirtual Machine implementation version
Java. VM. Vendor JavaVirtual Machine implementation vendor
Java. VM. Name JavaVirtual Machine implementation name
Java. Specification. Version JavaRuntime Environment Specification Version
Java. Specification. Vendor JavaRuntime Environment specification vendor
Java. Specification. Name JavaRuntime Environment specification name
Java. Class. Version JavaClass format version number
Java. Class. Path JavaClass path
Java. Library. PathList of paths to search when loading Libraries
Java. Io. tmpdirDefault temp file path

Java. CompilerName of JIT compiler to use
Java. Ext. dirsPath of extension directory or directories
OS. NameOperating system name
OS. ArchOperating System Architecture
OS. VersionOperating system version
File. SeparatorFile separator ("/" on UNIX) path. Separator path separator (":" On UNIX)
Line. SeparatorLine separator ("\ n" on UNIX)
User. NameUser's account name
User. HomeUser's home directory
User. dirUser's current working directory

Chinese comparison:

Java. Version Java Runtime Environment version

Java. Vendor Java Runtime Environment vendor

Java. Vendor. url URL of the Java vendor

Java. Home Java installation directory

Java. VM. Specification. Version Java Virtual Machine standard version

Java. VM. Specification. Vendor Java virtual machine specification vendor

Java. VM. Specification. Name Java virtual machine specification name

Java. VM. Version Java Virtual Machine implementation version
Java. VM. Vendor Java Virtual Machine implementation vendor

Java. VM. Name Java Virtual Machine implementation name

Java. Specification. Version Java Runtime Environment Standard version

Java. Specification. Vendor Java Runtime Environment specification vendor

Java. Specification. Name Java Runtime Environment Standard name

Java. Class. Version Java class format version number

Java. Class. Path Java class path

List of paths searched when the java. Library. Path library is loaded

Java. Io. tmpdir default temporary file path

Name of the JIT compiler to be used by Java. Compiler

Java. Ext. dirs: path of one or more extension Directories

OS. Name of the Operating System

OS. Arch Operating System Architecture

OS. Version

File. Separator file delimiter ("/" in UNIX)

Path. Separator path separator (":" in UNIX systems)

Line. Separator line separator ("/n" in UNIX ")

User. Name: Account name of the user

User. Home user's home directory

Current working directory of user. dir

 

Code:

Public static void main (string [] ARGs ){
System. Out. println ("Java. Version:" + system. getproperty ("Java. Version "));
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. 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:" + 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 ("file. separator:" + system. getproperty ("file. 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 "));
}

Running result:

Java. Version: 1.6.0 _ 02
Java. Vendor: Sun Microsystems Inc.
Java. Vendor. url: http://java.sun.com/
Java. Home: D: \ Program Files \ Java \ jdk1.6.0 _ 02 \ 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 _ 02-b06
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: e: \ workspace \ test \ webroot \ WEB-INF \ Classes; E: \ workspace \ test \ webroot \ WEB-INF \ Lib \ activation. jar;

Java. library. path: D: \ Program Files \ Java \ jdk1.6.0 _ 02 \ bin ;.; c: \ windows \ sun \ Java \ bin; c: \ windows \ system32; C: \ WINDOWS; c: \ windows \ system32; C: \ WINDOWS; C: \ windows \ system32 \ WBEM; C: \ Program Files \ common files \ thunder
Network \ Kankan \ codecs; C: \ Program Files \ Microsoft SQL Server \ 80 \ tools \ binn; C: \ Program Files \ Microsoft SQL Server \ 80 \ tools \ binn \; c: \ Program Files \ Microsoft SQL Server \ 90 \ DTS \ binn \; C: \ Program Files \ Microsoft SQL Server \ 90 \ tools \ binn \; C: \ Program Files \ Microsoft
SQL Server \ 90 \ tools \ binn \ vsshell \ common7 \ ide \; C: \ Program Files \ Microsoft Visual Studio 8 \ common7 \ ide \ privateassemblies \; D: \ Program Files \ Java \ jdk1.6.0 _ 02 \ bin; C: \ Program Files \ common files \ Adobe \ AGL; C: \ Program Files \ sinovoice \ jtts 5.0 Desktop \ bin; e: \ J2EE \ plugins \ ant \ apache-ant-1.7.1 \ bin; C: \ Program
Files \ cvsnt; C: \ Program Files \ stormii \ codec; C: \ Program Files \ stormii
Java. Io. tmpdir: C: \ javase ~ 1 \ admini ~ 1 \ locals ~ 1 \ temp \
Java. Compiler: NULL
Java. Ext. dirs: D: \ Program Files \ Java \ jdk1.6.0 _ 02 \ JRE \ Lib \ ext; C: \ WINDOWS \ sun \ Java \ Lib \ ext
OS. Name: Windows 2003
OS. Arch: x86
OS. Version: 5.2
File. separator :\
Line. separator:

User. Name: Administrator
User. Home: C: \ Documents ents and Settings \ Administrator
User. dir: e: \ workspace \ mvnforum

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.