Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Crawler using crawler 4j

  1. #1
    Junior Member
    Join Date
    Jun 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Lightbulb Crawler using crawler 4j

    I am trying to implement a basic crawler and I am following the instructions for the implementation using crawler4j using java. I am getting this error in the last line

    Bound mismatch: The generic method start(Class<T>, int) of type CrawlController is not applicable for the arguments (Class<MyCrawler>, int). The inferred type MyCrawler is not a valid substitute for the bounded parameter <T extends WebCrawler>

    Any body who has used this before who has come across this error?

               controller.start(MyCrawler.class, numberOfCrawlers);

    How should I get around this?


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    22,359
    Thanks
    56
    Thanked 2,376 Times in 2,346 Posts

    Default Re: Crawler using crawler 4j

    What is the definition for MyCrawler?
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. java crawler
    By anuu in forum What's Wrong With My Code?
    Replies: 9
    Last Post: February 12th, 2014, 05:19 AM
  2. Crawler has trouble logging in.
    By bholzer in forum What's Wrong With My Code?
    Replies: 0
    Last Post: November 13th, 2011, 06:59 PM
  3. Threads in Web Crawler
    By relion65 in forum Threads
    Replies: 5
    Last Post: June 29th, 2011, 12:48 AM
  4. Crawler is getting slow
    By manokrrish in forum Threads
    Replies: 3
    Last Post: October 18th, 2010, 10:24 AM
  5. How do we navigate to a page with the anchor link in Web Crawler program?
    By expertOpinion in forum What's Wrong With My Code?
    Replies: 5
    Last Post: September 10th, 2009, 05:44 PM