1. because it was decided to run Heritrix from the Ubuntu source code, so first install Eclipse: $ sudoapt-getinstalleclipse2. download Heritrix source code from here: 3. unzip: $ tarxzvf/home/xxx/workspace/heritrix-1.14.4-src.tar.gz4. change the folder name to heritrix (not required, which is easy to import to ec
1. Because it is decided to run Heritrix from the Ubuntu source code, install Eclipse first:
$ Sudo apt-get install eclipse
2. Download Heritrix source code from here:
3. decompress:
$ Tar xzvf/home/xxx/workspace/heritrix-1.14.4-src.tar.gz
4. Change the folder name to heritrix (not required, which is easy to import to eclipse ):
$ Mv heritrix-1.14.4 heritrix
5. Open eclipse, New-> Java Project-> Create Project from exsiting source
Ensure that the entered Project Name and Project folder Name are consistent.
6. Go to Run Configurations. [Linux community www.linuxidc.com] and specify the Main class
Org. archive. crawler. Heritrix
Add VM arguments:
-Dheritrix. development-Xmx512m
Add Classpath: Advanced-> Add External Folder and Add src/conf and src/resources to Classpath. Otherwise, two errors will be reported:
Exception in thread "main" java. io. IOException: Failed to load properties file from filesystem or from classpath.
At org. archive. crawler. Heritrix. getPropertiesInputStream (Heritrix. java: 924)
At org. archive. crawler. Heritrix. loadProperties (Heritrix. java: 863)
At org. archive. crawler. Heritrix. containerInitialization (Heritrix. java: 492)
At org. archive. crawler. Heritrix. main (Heritrix. java: 555)
And
10:03:01. 250 severe thread-10 org. archive. util. ArchiveUtils. () TLD list unavailable
Java. lang. NullPointerException
At java. io. Reader. (Unknown Source)
At java. io. InputStreamReader. (Unknown Source)
At org. archive. util. ArchiveUtils. (ArchiveUtils. java: 759)
........
More seriously, the selection item cannot be changed on the Heritrix Modules interface.
7. other things such as setting username and password, adding and running jobs are not described in detail here.