Java Common system Variable collection

Source: Internet
Author: User

 Public Static voidMain (string[] args) {System.out.println ("Java Version number:" + system.getproperty ("java.version"));//Java version numberSYSTEM.OUT.PRINTLN ("Java Provider name:" + system.getproperty ("Java.vendor"));//Java provider nameSYSTEM.OUT.PRINTLN ("Java Provider website:" + system.getproperty ("Java.vendor.url"));//Java Provider Web siteSystem.out.println ("JRE directory:" + system.getproperty ("Java.home"));//Java, oh, it should be the JRE directorySYSTEM.OUT.PRINTLN ("Java Virtual Machine Specification version number:" + system.getproperty ("java.vm.specification.version"));//Java Virtual Machine Specification version numberSYSTEM.OUT.PRINTLN ("Java Virtual machine Specification provider:" + system.getproperty ("Java.vm.specification.vendor"));//Java Virtual machine specification providerSYSTEM.OUT.PRINTLN ("Java Virtual machine Specification Name:" + system.getproperty ("Java.vm.specification.name"));//Java Virtual machine Specification nameSYSTEM.OUT.PRINTLN ("Java Virtual machine version number:" + system.getproperty ("java.vm.version"));//Java Virtual machine version numberSYSTEM.OUT.PRINTLN ("Java Virtual machine provider:" + system.getproperty ("Java.vm.vendor"));//Java Virtual machine providerSYSTEM.OUT.PRINTLN ("Java Virtual machine Name:" + system.getproperty ("Java.vm.name"));//Java Virtual machine nameSYSTEM.OUT.PRINTLN ("Java Spec version number:" + system.getproperty ("java.specification.version"));//Java Specification version numberSYSTEM.OUT.PRINTLN ("Java Spec provider:" + system.getproperty ("Java.specification.vendor"));//Java Specification providerSYSTEM.OUT.PRINTLN ("Java Specification Name:" + system.getproperty ("Java.specification.name"));//Java Specification nameSystem.out.println ("Java class version number:" + system.getproperty ("java.class.version"));//Java class version numberSystem.out.println ("Java classpath:" + system.getproperty ("Java.class.path"));//Java class pathSystem.out.println ("Java lib Path:" + system.getproperty ("Java.library.path"));//Java Lib PathSYSTEM.OUT.PRINTLN ("Java input/Output temp path:" + system.getproperty ("Java.io.tmpdir"));//java input/Output temp pathSYSTEM.OUT.PRINTLN ("Java compiler:" + system.getproperty ("Java.compiler"));//Java compilerSYSTEM.OUT.PRINTLN ("Java Execution path:" + system.getproperty ("Java.ext.dirs"));//Java Execution PathSYSTEM.OUT.PRINTLN ("Operating system name:" + system.getproperty ("Os.name"));//Operating system nameSYSTEM.OUT.PRINTLN ("Architecture of the Operating system:" + system.getproperty ("Os.arch"));//architecture of the operating systemSYSTEM.OUT.PRINTLN ("OS version number:" + system.getproperty ("os.version"));//operating system version numberSystem.out.println ("File delimiter:" + system.getproperty ("File.separator"));//file delimiterSYSTEM.OUT.PRINTLN ("Path delimiter:" + system.getproperty ("Path.separator"));//Path delimiterSystem.out.println ("line delimiter:" + system.getproperty ("Line.separator"));//Line delimiterSYSTEM.OUT.PRINTLN ("Operating system User name:" + system.getproperty ("User.Name"));//User nameSYSTEM.OUT.PRINTLN ("Operating system user's home directory:" + system.getproperty ("User.home"));//User's home directorySYSTEM.OUT.PRINTLN ("Current program directory:" + system.getproperty ("User.dir"));//directory where the current program is located}

Java Common system Variable collection

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.