System. getproperty () Summary

Source: Internet
Author: User
Tags file separator
Preface today, we help students in the group use system. getproperty () to obtain the attributes of the current system, such as the Java Virtual Machine version, operating system name, and so on.
System. getproperty () is used to obtain the system property indicated by the indicator key. However, some specific values in the Android system are provided by the Dalvik Vm and cannot be modified.
Test code:
System.out.println(System.getProperty("java.vm.name"));

Output:
2.7.0

Dalvid VM defined attributes
File. separator file separator Java. class. path Java class path Java. class. version Java class version number Java. the name of the JIT compiler used by compiler is Java. ext. the path of one or more extended directories in dirs is Java. home Java installation directory Java. io. tmpdir/sdcardjava. library. the path list searched when the path is loaded. java. java. vendor. URL Java vendor's urljava. version Java Runtime Environment version Java. specification. version Java Runtime Environment Specification Version Java. specification. the name of the Environment specification during the vendor Java Runtime is Java. specification. name Java Runtime Environment specification name Java. VM. version Java Virtual Machine implementation version Java. VM. java. VM. name Java Virtual Machine implementation name Java. VM. specification. version Java Virtual Machine Specification Version Java. VM. specification. java. VM. specification. name Java Runtime Environment specification name line. separator line separator OS. arch operating system architecture OS. name OS. the version path of the operating system. separator path separator user. the current working directory of the Dir user. home user's home directory user. name User's account name



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.