title: Implementation of crawler4j
body: <p>I am attempting to get the basic form of crawler4j running as seen <a href="http://code.google.com/p/crawler4j/source/browse/#git/src/test/java/edu/uci/ics/crawler4j/examples/basic" rel="nofollow">here</a>. I have modified the first few lines by defining the rootFolder and numberOfCrawlers as follows:</p>
  
  <pre><code>public class BasicCrawlController {
  
      public static void main(String[] args) throws Exception {
              if (args.length != 2) {
                      System.out.println("Needed parameters: ");
                      System.out.println("\t rootFolder (it will contain intermediate crawl data)");
                      System.out.println("\t numberOfCralwers (number of concurrent threads)");
                      return;
              }
  
              /*
               * crawlStorageFolder is a folder where intermediate crawl data is
               * stored.
               */
               String crawlStorageFolder = args[0];
  
                args[0] = "/data/crawl/root";
  
              /*
               * numberOfCrawlers shows the number of concurrent threads that should
               * be initiated for crawling.
               */
              int numberOfCrawlers = Integer.parseInt(args[1]);
  
              args[1] = "7";
  
  
              CrawlConfig config = new CrawlConfig();
  
              config.setCrawlStorageFolder(crawlStorageFolder);
  </code></pre>
  
  <p>No matter how I seem to define it I still am receiving the error</p>
  
  <pre><code>Needed parameters: 
   rootFolder (it will contain intermediate crawl data)
   numberOfCralwers (number of concurrent threads)
  </code></pre>
  
  <p>I think that I need to "set the paramaters in the Run Configurations" window but I do not know what that means. How can I properly configure this basic crawler to get it up and running?</p>