System. getProperty () method

Source: Internet
Author: User
Tags file separator

System. getProperty () method

System. out. println ("java version:" + System. getProperty ("java. version"); // java version
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 specification version
System. out. println ("java vm specification provider:" + System. getProperty ("java. vm. specification. vendor"); // java vm specification provider
System. out. println ("java vm specification name:" + System. getProperty ("java. vm. specification. name"); // java vm specification name
System. out. println ("java Virtual Machine version:" + System. getProperty ("java. vm. version"); // java Virtual Machine version
System. out. println ("java vm provider:" + System. getProperty ("java. vm. vendor"); // java vm provider
System. out. println ("java Virtual Machine name:" + System. getProperty ("java. vm. name"); // java Virtual Machine name
System. out. println ("Java specification version:" + System. getProperty ("java. specification. version"); // Java specification version
System. out. println ("Java standard provider:" + System. getProperty ("java. specification. vendor"); // Java standard provider
System. out. println ("Java canonical name:" + System. getProperty ("java. specification. name"); // Java canonical name
System. out. println ("Java class version:" + System. getProperty ("java. class. version"); // Java class version
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 Java input/output path
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"); // operating System name
System. out. println ("Operating System Architecture:" + System. getProperty ("OS. arch"); // Operating System Architecture
System. out. println ("operating System version:" + System. getProperty ("OS. version"); // operating System version
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"); // line separator
System. out. println ("operating System username:" + System. getProperty ("user. name"); // username
System. out. println ("operating System user's home directory:" + System. getProperty ("user. home"); // user's home directory
System. out. println ("directory of the current program:" + System. getProperty ("user. dir"); // directory of the current program

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.