Package Com.test;import Java.sql.sqlexception;import Java.util.properties;import Com.mchange.v2.c3p0.combopooleddatasource;public class Test {/** * @param args * @throws classnotfoundexception * @throws Illegalaccessexception * @throws instantiationexception * @throws SQLException */public static void Main (string[] args ) throws ClassNotFoundException, Instantiationexception, Illegalaccessexception, SQLException {Properties props= System.getproperties (); System Properties System.out.println ("Java Runtime version:" +props.getproperty ("java.version")); SYSTEM.OUT.PRINTLN ("Running environment provider for Java:" +props.getproperty ("Java.vendor")); System.out.println ("Java Vendor URL:" +props.getproperty ("Java.vendor.url")); SYSTEM.OUT.PRINTLN ("Installation path for Java:" +props.getproperty ("Java.home")); System.out.println ("Java version of the virtual machine specification:" +props.getproperty ("java.vm.specification.version")); SYSTEM.OUT.PRINTLN ("Virtual machine specification Provider for Java:" +props.getproperty ("Java.vm.specification.vendor")); SYSTEM.OUT.PRINTLN ("Java Virtual machine Specification Name:" +props.getpropertY ("Java.vm.specification.name")); SYSTEM.OUT.PRINTLN ("Virtual machine implementation version of Java:" +props.getproperty ("java.vm.version")); SYSTEM.OUT.PRINTLN ("Java Virtual machine Implementation provider:" +props.getproperty ("Java.vm.vendor")); SYSTEM.OUT.PRINTLN ("Java Virtual machine implementation name:" +props.getproperty ("Java.vm.name")); System.out.println ("Java Runtime Environment Specification version:" +props.getproperty ("java.specification.version")); System.out.println ("Java Runtime Environment Specification vendor:" +props.getproperty ("Java.specification.vender")); System.out.println ("Java Runtime Environment Specification name:" +props.getproperty ("Java.specification.name")); System.out.println ("Java Class format version number:" +props.getproperty ("java.class.version")); System.out.println ("Java classpath:" +props.getproperty ("Java.class.path")); SYSTEM.OUT.PRINTLN ("List of paths searched when loading library:" +props.getproperty ("Java.library.path")); SYSTEM.OUT.PRINTLN ("Default temporary file path:" +props.getproperty ("Java.io.tmpdir")); SYSTEM.OUT.PRINTLN ("Path to one or more extended directories:" +props.getproperty ("Java.ext.dirs")); System.out.println ("Name of the operating system:" +props.getproperty ("Os.name")); System.out.println ("Architecture of the Operating system:" +props.getproperty ("Os.arch")); SYSTEM.OUT.PRINTLN ("OS Version:" +props.getproperty ("os.version")); System.out.println ("File delimiter:" +props.getproperty ("File.separator")); In Unix system is "/" System.out.println ("Path delimiter:" +props.getproperty ("Path.separator")); In Unix system is ":" System.out.println ("line delimiter:" +props.getproperty ("Line.separator")); In the UNIX system is "/n" System.out.println ("User's account name:" +props.getproperty ("User.Name")); System.out.println ("User's home directory:" +props.getproperty ("User.home")); System.out.println ("User's current working directory:" +props.getproperty ("User.dir")); }}
Java System parameters