You can use the system. getproperty () method to obtain the following information:
Java. Version: indicates the Java version.
Java. Vendor: Java vendor
Java. Vendor. url: shows the Java manufacturer's URL
Java. Home: shows the security path of Java.
Java. Class. Version: indicates the Java version.
Java. Class. Path: Indicates Java classpath
OS. Name: indicates the operating system name.
OS. Arch: displays the structure of the operating system, such as x86.
OS. Version: indicates the operating system version.
File. encoding: view the system-recognized character delimiter set
File. separator: get the file delimiter
Path. separator: gets the token delimiter. For example, UNIX is represented ":".
Line. separator: obtains the delimiter line, for example, Unix indicates "\ n ".
User. Name: Get the token name
User. Home: Obtain the Home Directory, such as the administrator in windows.
The home project category is c: \ Documents ents and Settings \ Administrator
User. dir: Get the job category before using metadata