sujit-kr / crawler4j

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

WARNING: Could not find crawler4j.properties file in class path. #79

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
WARNING: Could not find crawler4j.properties file in class path. I will use the 
default values.
log4j:WARN No appenders could be found for logger 
(edu.uci.ics.crawler4j.crawler.CrawlController).
log4j:WARN Please initialize the log4j system properly.

that's the error. I manually added the 2.properties file from the zip file 
downloaded. And as I observed, every time I build, they are deleted.

I'm using crawler4j-2.6.1 version. Windows 7 64-bit.

what did I miss here?:s

replies are appreciated. thanks.

Original issue reported on code.google.com by ange.bai...@gmail.com on 15 Sep 2011 at 3:25

GoogleCodeExporter commented 9 years ago
Same problem here on OSX Lion

Original comment by p...@k12.xrds.org on 24 Sep 2011 at 5:30

GoogleCodeExporter commented 9 years ago
i had the same issue with  crawler4j-2.6.1 version. Windows 7 64-bit like 
ange.bai...@gmail.com. i juste think , it is only a classpath problem. Using 
Eclipse i was able to create a new source folder "resources", copy the 2 
properties files and refresh my project. 
and the problem was solved and i could run the crawler

Original comment by ndjockab...@yahoo.fr on 27 Sep 2011 at 5:26

GoogleCodeExporter commented 9 years ago
Any update on this?

Original comment by Geoffrey...@gmail.com on 11 Oct 2011 at 6:14

GoogleCodeExporter commented 9 years ago
Command line solution: Add the directory containing the .property files to your 
classpath, but wildcards didn't seem to work. So navigate to the folder with 
the unzipped files in it (say, c:\java\) and use the command

java -cp .\lib\*;.\crawler4j-2.6.1.jar;C:\java\* 
edu.uci.ics.crawler4j.example.imagecrawler.Controller 

worked for me, Win7 64 bit.

Original comment by Geoffrey...@gmail.com on 11 Oct 2011 at 6:37

GoogleCodeExporter commented 9 years ago
As of version 3.0, the properties file is not needed and configurations can be 
set through a CrawlConfig object. See 
http://code.google.com/p/crawler4j/wiki/Configurations for details and 
http://code.google.com/p/crawler4j/source/browse/src/test/java/edu/uci/ics/crawl
er4j/examples/basic/BasicCrawlController.java for a sample.

-Yasser

Original comment by ganjisaffar@gmail.com on 2 Jan 2012 at 7:51

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
i am new to crawler4j . i need to crawl a website for my project, i am using 
eclipse7.0.47 version wat cralwer version i should use so tat my program runs 
properly. and weather crawler4j is based on maven?

Original comment by srividhy...@gmail.com on 23 Nov 2013 at 7:42