java中getProperties获取本机系统的值_JAVA_编程开发_程序员俱乐部

中国优秀的程序员网站程序员频道CXYCLUB技术地图
热搜:
更多>>
 
您所在的位置: 程序员俱乐部 > 编程开发 > JAVA > java中getProperties获取本机系统的值

java中getProperties获取本机系统的值

 2014/6/13 9:25:45  xfxlch  程序员俱乐部  我要评论(0)
  • 摘要:System.out.println("user.dir:"+System.getProperty("user.dir"));System.out.println("java.version:"+System.getProperty("java.version"));System.out.println("java.vendor:"+System.getProperty("java.vendor"));System.out.println("java_vendor_url:"+System
  • 标签:Java
System.out.println("user.dir:" + System.getProperty("user.dir"));
System.out.println("java.version:" + System.getProperty("java.version"));
System.out.println("java.vendor:" + System.getProperty("java.vendor"));
System.out.println("java_vendor_url:"    
             + System.getProperty("java.vendor.url"));    
    System.out.println("java_home:" + System.getProperty("java.home"));    
    System.out.println("java_class_version:"    
             + System.getProperty("java.class.version"));    
    System.out.println("java_class_path:"    
            + System.getProperty("java.class.path"));    
    System.out.println("os_name:" + System.getProperty("os.name"));    
    System.out.println("os_arch:" + System.getProperty("os.arch"));    
    System.out.println("os_version:" + System.getProperty("os.version"));    
    System.out.println("user_name:" + System.getProperty("user.name"));    
    System.out.println("user_home:" + System.getProperty("user.home"));    
    System.out.println("user_dir:" + System.getProperty("user.dir"));    
    System.out.println("java_vm_specification_version:"    
            + System.getProperty("java.vm.specification.version"));    
    System.out.println("java_vm_specification_vendor:"    
            + System.getProperty("java.vm.specification.vendor"));    
    System.out.println("java_vm_specification_name:"    
            + System.getProperty("java.vm.specification.name"));    
    System.out.println("java_vm_version:"    
            + System.getProperty("java.vm.version"));    
    System.out.println("java_vm_vendor:"    
            + System.getProperty("java.vm.vendor"));    
    System.out    
            .println("java_vm_name:" + System.getProperty("java.vm.name"));    
    System.out.println("java_ext_dirs:"    
            + System.getProperty("java.ext.dirs"));    
    System.out.println("file_separator:"    
            + System.getProperty("file.separator"));    
    System.out.println("path_separator:"    
            + System.getProperty("path.separator"));    
    System.out.println("line_separator:"    
            + System.getProperty("line.separator"));
发表评论
用户名: 匿名