[轉貼]System.getProperty()參數大全

來源:互聯網
上載者:User
  1. System.getProperty() 參數大全  
  2.   
  3. java.version            Java Runtime Environment version  
  4. java.vendor            Java Runtime Environment vendor  
  5. java.vendor.url            Java vendor URL  
  6. java.home            Java installation directory  
  7. java.vm.specification.version                    Java Virtual Machine specification version  
  8. java.vm.specification.vendor                    Java Virtual Machine specification vendor  
  9. java.vm.specification.name                    Java Virtual Machine specification name  
  10. java.vm.version            Java Virtual Machine implementation version  
  11. java.vm.vendor            Java Virtual Machine implementation vendor  
  12. java.vm.name            Java Virtual Machine implementation name  
  13. java.specification.version                Java Runtime Environment specification version  
  14. java.specification.vendor             Java Runtime Environment specification vendor  
  15. java.specification.name        Java Runtime Environment specification name  
  16. java.class.version                        Java class format version number  
  17. java.class.path                  Java class path  
  18. java.library.path                        List of paths to search when loading libraries  
  19. java.io.tmpdir                Default temp file path  
  20. java.compiler            Name of JIT compiler to use  
  21. java.ext.dirs            Path of extension directory or directories  
  22. os.name                Operating system name  
  23. os.arch                Operating system architecture  
  24. os.version            Operating system version  
  25. file.separator            File separator ("/" on UNIX)  
  26. path.separator            Path separator (":" on UNIX)  
  27. line.separator            Line separator ("\n" on UNIX)  
  28. user.name            User's account name  
  29. user.home            User's home directory  
  30. user.dir                User's current working directory   

使用方法很簡單:System.getProperty("user.dir")  

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.