Just to dump java System class properties.
       try
        {
   
     ////dumping system properties.
  // Note1) If property is duplicated it will use the later value for key value
        Properties p = System.getProperties();
  Enumeration e=  p.propertyNames();
  for ( ; e.hasMoreElements();) {
     String o =(String) e.nextElement();
           System.out.println( "\n Key="+ o);
           System.out.println( " Value="+ p.getProperty(o) );
  }
 
        }
        catch (Exception e)
        {
                System.err.println("Directory " + e.getMessage() + " is invalid.");
                e.printStackTrace();
        }
 
 
No comments:
Post a Comment