code: public static void main(String args[])
     {
        try
        {
        // Create the monitor
        
        //FileMonitor fm = FileMonitor.createFileMonitor(args);
           FileMonitor.createFileMonitor(args);
        }
        catch(Exception e)
        {
           System.err.println("Unable monitor specified input error="+e);
           System.exit(-1);
        }
        // Avoid program exit
        while (!false)
        {
           try
           {
              Thread.sleep(1000);
           }
           catch(Exception e){e.printStackTrace();}
        }
  
     }
docs: Test this class.
  
  @param args Not used.