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