Get some system configuration information in Java

Source: Internet
Author: User

System.getproperty (""));

Java.version Java Runtime Environment version

Java.vendor Java Runtime Environment Vendor

Java.vendor.url Java Vendor's URL

Java.vm.specification.version Java Virtual Machine specification version

Java.vm.specification.vendor Java Virtual Machine specification Provider

Java.vm.specification.name Java Virtual Machine Specification Name

Java.vm.version Java Virtual Machine implementation version

Java.vm.vendor Java virtual Machine implementation Provider

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

Os.name name of the operating system

Architecture of the Os.arch operating system

Os.version version of the operating system

File.separator file Delimiter ("/" in UNIX system)

Path.separator path Delimiter (":" In UNIX system)

Line.separator line Delimiter ("/n" in UNIX systems)

Java.home Java installation directory

Java.class.version Java class format version number

Java.class.path Java Classpath

Java.library.path List of paths to search when loading libraries

Java.io.tmpdir the default temporary file path

Java.compiler the name of the JIT compiler to use

Java.ext.dirs path to one or more extended directories

User.Name User's account name

User.home User's home directory

User.dir the physical path of the current program

Get some system configuration information in Java

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.