System.getProperties()システムパラメータの取得



 Properties props=System.getProperties(); //    
   System.out.println("Java        :"+props.getProperty("java.vm.specification.name"));
   System.out.println("Java        :"+props.getProperty("java.vm.version"));
   System.out.println("Java         :"+props.getProperty("java.vm.vendor"));
   System.out.println("Java        :"+props.getProperty("java.vm.name"));
   System.out.println("Java         :"+props.getProperty("java.specification.version"));
   System.out.println("Java          :"+props.getProperty("java.specification.vender"));
   System.out.println("Java       :"+props.getProperty("java.version"));
   System.out.println("Java        :"+props.getProperty("java.vendor"));
   System.out.println("Java    URL:"+props.getProperty("java.vendor.url"));
   System.out.println("Java     :"+props.getProperty("java.home"));
   System.out.println("Java        :"+props.getProperty("java.vm.specification.version"));
   System.out.println("Java         :"+props.getProperty("java.vm.specification.vendor"));
   System.out.println("Java         :"+props.getProperty("java.specification.name"));
   System.out.println("Java       :"+props.getProperty("java.class.version"));
   System.out.println("Java    :"+props.getProperty("java.class.path"));
   System.out.println("           :"+props.getProperty("java.library.path"));
   System.out.println("         :"+props.getProperty("java.io.tmpdir"));
   System.out.println("            :"+props.getProperty("java.ext.dirs"));
   System.out.println("       :"+props.getProperty("os.name"));
   System.out.println("       :"+props.getProperty("os.arch"));
   System.out.println("       :"+props.getProperty("os.version"));
   System.out.println("     :"+props.getProperty("file.separator"));   //  unix     "/"
   System.out.println("     :"+props.getProperty("path.separator"));   //  unix     ":"
   System.out.println("    :"+props.getProperty("line.separator"));   //  unix     "/n"
   System.out.println("       :"+props.getProperty("user.name"));
   System.out.println("      :"+props.getProperty("user.home"));
   System.out.println("         :"+props.getProperty("user.dir"));