System. getproperty () method Overview

Source: Internet
Author: User
Tags file separator

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

System. getproperty () method Overview

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.