System. getProperty () method
System. out. println ("java version:" + System. getProperty ("java. version"); // java version
System. out. println ("Java provider name:" + System. getProperty ("java. vendor"); // Java provider name
System. out. println ("Java provider Website:" + System. getProperty ("java. vendor. url"); // Java provider website
System. out. println ("jre Directory:" + System. getProperty ("java. home"); // Java, oh, it should be the jre directory
System. out. println ("java Virtual Machine specification version:" + System. getProperty ("java. vm. specification. version"); // java Virtual Machine specification version
System. out. println ("java vm specification provider:" + System. getProperty ("java. vm. specification. vendor"); // java vm specification provider
System. out. println ("java vm specification name:" + System. getProperty ("java. vm. specification. name"); // java vm specification name
System. out. println ("java Virtual Machine version:" + System. getProperty ("java. vm. version"); // java Virtual Machine version
System. out. println ("java vm provider:" + System. getProperty ("java. vm. vendor"); // java vm provider
System. out. println ("java Virtual Machine name:" + System. getProperty ("java. vm. name"); // java Virtual Machine name
System. out. println ("Java specification version:" + System. getProperty ("java. specification. version"); // Java specification version
System. out. println ("Java standard provider:" + System. getProperty ("java. specification. vendor"); // Java standard provider
System. out. println ("Java canonical name:" + System. getProperty ("java. specification. name"); // Java canonical name
System. out. println ("Java class version:" + System. getProperty ("java. class. version"); // Java class version
System. out. println ("Java class path:" + System. getProperty ("java. class. path"); // Java class path
System. out. println ("Java lib path:" + System. getProperty ("java. library. path"); // Java lib path
System. out. println ("temporary Java input/output path:" + System. getProperty ("java. io. tmpdir"); // temporary Java input/output path
System. out. println ("Java compiler:" + System. getProperty ("java. compiler"); // Java compiler
System. out. println ("Java execution path:" + System. getProperty ("java. ext. dirs"); // Java execution path
System. out. println ("operating System name:" + System. getProperty ("OS. name"); // operating System name
System. out. println ("Operating System Architecture:" + System. getProperty ("OS. arch"); // Operating System Architecture
System. out. println ("operating System version:" + System. getProperty ("OS. version"); // operating System version
System. out. println ("file separator:" + System. getProperty ("file. separator"); // file separator
System. out. println ("path separator:" + System. getProperty ("path. separator"); // path separator
System. out. println ("line separator:" + System. getProperty ("line. separator"); // line separator
System. out. println ("operating System username:" + System. getProperty ("user. name"); // username
System. out. println ("operating System user's home directory:" + System. getProperty ("user. home"); // user's home directory
System. out. println ("directory of the current program:" + System. getProperty ("user. dir"); // directory of the current program