System. getProperty parameter description, system. getproperty

Source: Internet
Author: User
Tags file separator

System. getProperty parameter description, system. getproperty
# Java. version Java Runtime Environment version
# Java. vendor Java Runtime Environment vendor
# Java. vendor. url Java vendor URL
# Java. home Java installation directory
# Java. vm. specification. version Java Virtual Machine specification version
# Java. vm. specification. vendor Java Virtual Machine specification vendor
# Java. vm. specification. name Java Virtual Machine specification name
# Java. vm. version Java Virtual Machine implementation version
# Java. vm. vendor Java Virtual Machine implementation vendor
# Java. vm. name Java Virtual Machine implementation name
# Java. specification. version Java Runtime Environment specification version
# Java. specification. vendor Java Runtime Environment specification vendor
# Java. specification. name Java Runtime Environment specification name
# Java. class. version Java class format version number
# Java. class. path Java class path
# Java. library. path List of paths to search when loading libraries
# Java. io. tmpdir Default temp file path
# Java. compiler Name of JIT compiler to use
# Java. ext. dirs Path of extension directory or directories
# OS. name Operating system name
# OS. arch Operating system architecture
# OS. version Operating system version
# File. separator File separator ("/" on UNIX)
# Path. separator Path separator (":" on UNIX)
# Line. separator Line separator ("\ n" on UNIX)
# User. name User's account name
# User. home User's home directory
# User. dir User's current working directory

1 import java. util. properties; 2 3 public class SystemTest {4 5 public static void main (String [] args) {6 Properties props = System. getProperties (); // System property 7 System. out. println ("Java Runtime Environment version:" + props. getProperty ("java. version "); 8 System. out. println ("Java Runtime Environment vendor:" + props. getProperty ("java. vendor "); 9 System. out. println ("Java vendor URL:" + props. getProperty ("java. vendor. url "); 10 System. out. println ("Java installation path:" + props. getProperty ("java. home "); 11 System. out. println ("Java Virtual Machine Specification Version:" + props. getProperty ("java. vm. specification. version "); 12 System. out. println ("Java virtual machine specification Supplier:" + props. getProperty ("java. vm. specification. vendor "); 13 System. out. println ("Java virtual machine specification name:" + props. getProperty ("java. vm. specification. name "); 14 System. out. println ("Java Virtual Machine implementation version:" + props. getProperty ("java. vm. version "); 15 System. out. println ("Java Virtual Machine implementation vendor:" + props. getProperty ("java. vm. vendor "); 16 System. out. println ("Java Virtual Machine implementation name:" + props. getProperty ("java. vm. name "); 17 System. out. println ("Java Runtime Environment Standard Version:" + props. getProperty ("java. specification. version "); 18 System. out. println ("Java Runtime Environment specification Supplier:" + props. getProperty ("java. specification. vender "); 19 System. out. println ("Java Runtime Environment specification name:" + props. getProperty ("java. specification. name "); 20 System. out. println ("Java class format version:" + props. getProperty ("java. class. version "); 21 System. out. println ("Java class path:" + props. getProperty ("java. class. path "); 22 System. out. println ("List of paths searched during Database loading:" + props. getProperty ("java. library. path "); 23 System. out. println ("Default temporary file path:" + props. getProperty ("java. io. tmpdir "); 24 System. out. println ("path of one or more extended directories:" + props. getProperty ("java. ext. dirs "); 25 System. out. println ("operating system name:" + props. getProperty ("OS. name "); 26 System. out. println ("Operating System Architecture:" + props. getProperty ("OS. arch "); 27 System. out. println ("OS version:" + props. getProperty ("OS. version "); 28 System. out. println ("file separator:" + props. getProperty ("file. separator "); 29 System. out. println ("path separator:" + props. getProperty ("path. separator "); 30 System. out. println ("line separator:" + props. getProperty ("line. separator "); 31 System. out. println ("User Account name:" + props. getProperty ("user. name "); 32 System. out. println ("Your home directory:" + props. getProperty ("user. home "); 33 System. out. println ("current working directory of the User:" + props. getProperty ("user. dir "); 34} 35 36}

Related Article

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.