Detailed explanation of the System. getProperty () method in java, system. getproperty

Source: Internet
Author: User
Tags file separator

Detailed explanation of the System. getProperty () method in java, system. getproperty

In java, the System. getProperty () method is described as follows:

System. out. println ("java version:" + System. getProperty ("java. version "); // java version number System. out. println ("Java provider name:" + System. getProperty ("java. vendor "); // Java provider name System. out. println ("Java provider Website:" + System. getProperty ("java. vendor. url "); // Java provider website System. out. println ("jre Directory:" + System. getProperty ("java. home "); // Java, oh, it should be the jre directory System. out. println ("Java Virtual Machine Specification Version:" + System. getProperty ("java. vm. specification. version "); // Java Virtual Machine standard version number System. out. println ("Java virtual machine specification provider:" + System. getProperty ("java. vm. specification. vendor "); // Java virtual machine specification provider System. out. println ("Java virtual machine specification name:" + System. getProperty ("java. vm. specification. name "); // name of the Java Virtual Machine Specification System. out. println ("Java Virtual Machine version:" + System. getProperty ("java. vm. version "); // Java Virtual Machine version number System. out. println ("Java virtual machine provider:" + System. getProperty ("java. vm. vendor "); // Java virtual machine provider System. out. println ("Java Virtual Machine name:" + System. getProperty ("java. vm. name "); // name of the Java Virtual Machine System. out. println ("Java specification version:" + System. getProperty ("java. specification. version "); // Java standard version number System. out. println ("Java standard provider:" + System. getProperty ("java. specification. vendor "); // Java standard provider System. out. println ("Java specification name:" + System. getProperty ("java. specification. name "); // Java standard name System. out. println ("Java class version:" + System. getProperty ("java. class. version "); // Java class version number System. out. println ("Java class path:" + System. getProperty ("java. class. path "); // Java class path System. out. println ("Java lib path:" + System. getProperty ("java. library. path "); // Java lib path System. out. println ("temporary Java input/output path:" + System. getProperty ("java. io. tmpdir "); // temporary path of Java input and output: System. out. println ("Java compiler:" + System. getProperty ("java. compiler "); // Java compiler System. out. println ("Java execution path:" + System. getProperty ("java. ext. dirs "); // Java execution path: System. out. println ("operating System name:" + System. getProperty ("OS. name "); // The operating System name System. out. println ("Operating System Architecture:" + System. getProperty ("OS. arch "); // The operating System architecture. out. println ("operating System version:" + System. getProperty ("OS. version "); // operating System version number System. out. println ("file separator:" + System. getProperty ("file. separator "); // file separator System. out. println ("path separator:" + System. getProperty ("path. separator "); // path separator System. out. println ("line separator:" + System. getProperty ("line. separator "); // a line separator System. out. println ("operating System username:" + System. getProperty ("user. name "); // user name System. out. println ("operating System user's home directory:" + System. getProperty ("user. home "); // the user's home directory System. out. println ("directory of the current program:" + System. getProperty ("user. dir "); // directory where the current program is located




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.