The system. getproperty () method can obtain the following information:

Source: Internet
Author: User

You can use the system. getproperty () method to obtain the following information:
Java. Version: indicates the Java version.
Java. Vendor: Java vendor
Java. Vendor. url: shows the Java manufacturer's URL
Java. Home: shows the security path of Java.
Java. Class. Version: indicates the Java version.
Java. Class. Path: Indicates Java classpath
OS. Name: indicates the operating system name.
OS. Arch: displays the structure of the operating system, such as x86.
OS. Version: indicates the operating system version.

File. encoding: view the system-recognized character delimiter set
File. separator: get the file delimiter
Path. separator: gets the token delimiter. For example, UNIX is represented ":".
Line. separator: obtains the delimiter line, for example, Unix indicates "\ n ".
User. Name: Get the token name
User. Home: Obtain the Home Directory, such as the administrator in windows.
The home project category is c: \ Documents ents and Settings \ Administrator
User. dir: Get the job category before using metadata

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