Skip to content

Command-line install trouble: Could not find or load main class #505

Answered by ato
mlforcada asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Mikel,

The install guide you linked makes the assumption the user would be installing the precompiled application not building it from source. The step you seem to be missing when building from source is the maven build produces the binary distribution tar file at dist/target/heritrix-3.4.0-SNAPSHOT-dist.tar.gz. As mentioned in the install guide you will need to unpack the dist tar somewhere to install Heritrix. The bin/heritrix script assumes HERITRIX_HOME points at the unpacked binary distribution and as you found will not work when pointing at the source code.

For example:

cd ~/tmp
tar -zxvf heritrix3/dist/target/heritrix-3.4.0-SNAPSHOT-dist.tar.gz
export HERITRIX_HOME=$PWD/heritrix…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ato
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #332 on September 30, 2022 00:37.