The java_system class obtains system attribute values.

Source: Internet
Author: User
Tags file separator

Go directlyCode

Public class systemproperty {public static void main (string ARGs []) {// Java Runtime Environment version system. out. println ("Java. version: "+ system. getproperty ("Java. version "); // Java Runtime Environment vendor system. out. println ("Java. vendor: "+ system. getproperty ("Java. vendor "); // Java Runtime Environment Standard Version System. out. println ("Java. specification. version: "+ system. getproperty ("Java. specification. version "); // Java Runtime Environment specification vendor system. out. println ("Java. specification. vendor: "+ system. getproperty ("Java. specification. vendor "); // The name of the Java Runtime Environment Specification System. out. println ("Java. specification. name: "+ system. getproperty ("Java. specification. name "); // urlsystem of the Java vendor. out. println ("Java. vendor. URL: "+ system. getproperty ("Java. vendor. URL "); // Java installation directory system. out. println ("Java. home: "+ system. getproperty ("Java. home "); // Java Virtual Machine standard version system. out. println ("Java. VM. specification. version: "+ system. getproperty ("Java. VM. specification. version "); // Java virtual machine specification vendor system. out. println ("Java. VM. specification. vendor: "+ system. getproperty ("Java. VM. specification. vendor "); // Java virtual machine specification name system. out. println ("Java. VM. specification. name: "+ system. getproperty ("Java. VM. specification. name "); // Java Virtual Machine implementation version system. out. println ("Java. VM. version: "+ system. getproperty ("Java. VM. version "); // Java Virtual Machine implementation vendor system. out. println ("Java. VM. vendor: "+ system. getproperty ("Java. VM. vendor "); // Java Virtual Machine implementation name system. out. println ("Java. VM. name: "+ system. getproperty ("Java. VM. name "); // Java class format version number system. out. println ("Java. class. version: "+ system. getproperty ("Java. class. version "); // Java class path system. out. println ("Java. class. path: "+ system. getproperty ("Java. class. path "); // The path list system searched when the library is loaded. out. println ("Java. library. path: "+ system. getproperty ("Java. library. path "); // default temporary file path: system. out. println ("Java. io. tmpdir: "+ system. getproperty ("Java. io. tmpdir "); // The Name Of The JIT compiler to be used: system. out. println ("Java. compiler: "+ system. getproperty ("Java. compiler "); // path of one or more extended directories: system. out. println ("Java. ext. dirs: "+ system. getproperty ("Java. ext. dirs "); // The operating system name. out. println ("OS. name: "+ system. getproperty ("OS. name "); // Operating System Architecture. out. println ("OS. arch: "+ system. getproperty ("OS. arch "); // The operating system version. out. println ("OS. version: "+ system. getproperty ("OS. version "); // file separator ("/"in UNIX) system. out. println ("file. separator: "+ system. getproperty ("file. separator "); // path separator (": "in UNIX) system. out. println ("path. separator: "+ system. getproperty ("path. separator "); // line separator ("/n "in UNIX) system. out. println ("line. separator: "+ system. getproperty ("line. separator "); // the user's account name system. out. println ("user. name: "+ system. getproperty ("user. name "); // the user's main directory system. out. println ("user. home: "+ system. getproperty ("user. home "); // The current working directory of the User: system. out. println ("user. dir: "+ system. getproperty ("user. dir "));}}

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.