xrma / crawler4j

Automatically exported from code.google.com/p/crawler4j
0 stars 0 forks source link

package error came wen trying to compile basic crawler #241

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.compiling the basic crawler

What is the expected output? What do you see instead?
        THESE ARE THE ERRORS which are coming.I can't solve these.
BasicCrawler.java:19: package edu.uci.ics.crawler4j.crawler does not exist
import edu.uci.ics.crawler4j.crawler.Page;
                                    ^
BasicCrawler.java:20: package edu.uci.ics.crawler4j.crawler does not exist
import edu.uci.ics.crawler4j.crawler.WebCrawler;
                                    ^
BasicCrawler.java:21: package edu.uci.ics.crawler4j.parser does not exist
import edu.uci.ics.crawler4j.parser.HtmlParseData;
                                   ^
BasicCrawler.java:22: package edu.uci.ics.crawler4j.url does not exist
import edu.uci.ics.crawler4j.url.WebURL;
                                ^
BasicCrawler.java:27: package org.apache.http does not exist
import org.apache.http.Header;
                      ^
BasicCrawler.java:32: cannot find symbol
symbol: class WebCrawler
public class BasicCrawler extends WebCrawler {
                                  ^
BasicCrawler.java:42: cannot find symbol
symbol  : class WebURL
location: class BasicCrawler
        public boolean shouldVisit(WebURL url) {
                                   ^
BasicCrawler.java:52: cannot find symbol
symbol  : class Page
location: class BasicCrawler
        public void visit(Page page) {
                          ^
BasicCrawler.java:41: method does not override or implement a method from a supe
rtype
        @Override
        ^
BasicCrawler.java:69: cannot find symbol
symbol  : class HtmlParseData
location: class BasicCrawler
                if (page.getParseData() instanceof HtmlParseData) {
                                                   ^
BasicCrawler.java:70: cannot find symbol
symbol  : class HtmlParseData
location: class BasicCrawler
                        HtmlParseData htmlParseData = (HtmlParseData) page.getPa
rseData();
                        ^
BasicCrawler.java:70: cannot find symbol
symbol  : class HtmlParseData
location: class BasicCrawler
                        HtmlParseData htmlParseData = (HtmlParseData) page.getPa
rseData();
                                                       ^
BasicCrawler.java:73: cannot find symbol
symbol  : class WebURL
location: class BasicCrawler
                        List<WebURL> links = htmlParseData.getOutgoingUrls();
                             ^
BasicCrawler.java:80: cannot find symbol
symbol  : class Header
location: class BasicCrawler
                Header[] responseHeaders = page.getFetchResponseHeaders();
                ^
BasicCrawler.java:83: cannot find symbol
symbol  : class Header
location: class BasicCrawler
                        for (Header header : responseHeaders) {
                             ^
BasicCrawler.java:51: method does not override or implement a method from a supe
rtype
        @Override
        ^
16 errors

What version of the product are you using?
I am using  3.5 version

Please provide any additional information below.

Original issue reported on code.google.com by sasidivv...@gmail.com on 10 Nov 2013 at 11:32

GoogleCodeExporter commented 9 years ago
This is not a bug, it is a java environment setting issue

Original comment by avrah...@gmail.com on 17 Aug 2014 at 5:06

GoogleCodeExporter commented 9 years ago
Not a bug or feature thus moved to the forum

Original comment by avrah...@gmail.com on 17 Aug 2014 at 5:07