System.getproperty () method in Java

Source: Internet
Author: User

The System.getproperty () method in Java is detailed below:

System.out.println ("Java Version number:" + 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, should be the JRE directory System.out.println ("Java Virtual Machine Specification version number:" + system.getproperty ("java.vm.specification.version")); Java Virtual Machine Specification 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")); Java Virtual Machine Specification name SYSTEM.OUT.PRINTLN ("Java Virtual machine version number:" + 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")); Java Virtual machine name System.out.println ("Java Specification Version number:" + system.getproperty ("java.specification.version")); Java Specification version number SystEM.OUT.PRINTLN ("Java Spec provider:" + system.getproperty ("Java.specification.vendor")); Java Specification provider System.out.println ("Java Specification Name:" + system.getproperty ("Java.specification.name")); Java Specification name SYSTEM.OUT.PRINTLN ("Java class version number:" + system.getproperty ("java.class.version")); Java class version number System.out.println ("Java classpath:" + system.getproperty ("Java.class.path")); Java classpath System.out.println ("Java lib path:" + system.getproperty ("Java.library.path")); Java lib path System.out.println ("Java input/Output temp path:" + system.getproperty ("Java.io.tmpdir")); Java input and Output temp 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 Schema:" + system.getproperty ("Os.arch")); The operating system's schema System.out.println ("OS version number:" + system.getproperty ("os.version")); Operating system version number System.out.println ("File delimiter:" + system.getproperty ("File.separator")); File Delimiter SystEM.OUT.PRINTLN ("Path delimiter:" + system.getproperty ("Path.separator")); Path delimiter System.out.println ("line delimiter:" + system.getproperty ("Line.separator")); Line delimiter System.out.println ("Operating system User name:" + system.getproperty ("User.Name")); User name System.out.println ("Home directory for operating system users:" + system.getproperty ("User.home")); User's home directory System.out.println ("Current program directory:" + system.getproperty ("User.dir")); directory where the current program is located




System.getproperty () method in Java

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.