Java System property system. getproperty

Source: Internet
Author: User
Tags file separator
The system. getproperty (string name) method is used to obtain the system attributes. System is a class in the lang package. This class has a lot of practical methods to deal with the system, and is generally a class
Method,. getproperty (string key) is one of the more common methods, used to return the value represented by the key specified by this method in the system parameter file.

The following are common parameters for this method. Key Significance
-------------------------------------------------
Java. versionjava. Version
Java Runtime Environment version
Java. vendorjava. Vendor Java Runtime Environment vendor
Java. Vendor. urljava. Vendor. url URL of the Java vendor
Installation Directory of Java. homejava. Home Java
Java. VM. Specification. Version Java Virtual Machine standard version
Java. VM. Specification. Vendor Java VM specification supplier
Java. VM. Specification. Name Java VM specification name
Java. VM. versionjava. VM. Version Java VM execution version
Java. VM. vendorjava. VM. Vendor Java Virtual Machine implementation vendor
Java. VM. namejava. 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 specification name
Java. Class. versionjava. Class. Version Java class format version number
Java. Class. pathjava. Class. Path Java class path
When you search for paths in the Java. Library. Path list
Java. Io. tmpdirjava. Io. tmpdir default temp file path
Java. compilerjava. compiler name JIT compiler used
Java. Ext. dirsjava. Ext. dirs road extension directory or directory
OS. Name
Operating system name
OS. archos. Arch
Operating System Architecture
OS. versionos. Version

File. separatorfile. Separator file separator ("/" in UNIX)
Path. separatorpath. Separator path separator (":" in UNIX)
Line. separatorline. Separator
Line separation ("/nitrogen", in UNIX)
User. nameuser. Name the account name of the user
User. homeuser. Home user's home directory
Current working directory of user. diruser. dir

Related Article

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.