code: public static void main(String[] argv)
     {
        if (argv.length != 2)
        {
           System.out.println("DataExport <filename> <output directory>");
        }
        else
        {
           Connection connection = null;
  
           try
           {
              Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              String url = "jdbc:odbc:DRIVER=Microsoft Access Driver (*.mdb);DBQ=" + argv[0];
              connection = DriverManager.getConnection(url);
  
              DataExportUtility dx = new DataExportUtility();
              dx.process(connection, argv[1]);
           }
  
           catch (Exception ex)
           {
              ex.printStackTrace();
           }
  
           finally
           {
              if (connection != null)
              {
                 try
                 {
                    connection.close();
                 }
  
                 catch (SQLException ex)
                 {
                    // silently ignore exceptions when closing connection
                 }
              }
           }
        }
     }
docs: Command line entry point.
  
  @param argv command line arguments