I copy here the correction in bin/nutch I made.
But, I suspect that it is not the right way to force Nutch to find the
plugin jar...
# add libs to CLASSPATH
if $local; then
for f in $NUTCH_HOME/lib/*.jar; do
CLASSPATH=${CLASSPATH}:$f;
done
# local runtime
# add plugins to classpath
if [ -d "$NUTCH_HOME/plugins" ]; then
* for f in $NUTCH_HOME/plugins/*/*.jar; do
CLASSPATH=${CLASSPATH}:$f;
done
* CLASSPATH=${NUTCH_HOME}:${CLASSPATH}
fi
fi
On Tue, Jul 9, 2013 at 11:48 AM, Sznajder ForMailingList <
[email protected]> wrote:
> Hi
>
> I wrote a plugin following the tutorial
> http://wiki.apache.org/nutch/WritingPluginExample
>
> However, when launching it via ant call, I get the following exception:
>
> java.lang.RuntimeException:
> org.apache.nutch.plugin.PluginRuntimeException:
> java.lang.ClassNotFoundException:
>
>
> I had a look at the runtime/local/plugins/ directory, and I see there the
> created directory corresponding to this plugin.
>
> More strange, when I specifically add the created jar to the classpath, it
> is running with no problem.
>
> I do no understand why it doesn't it find the jar with the usal bin/nutch
> script.....
>
> Best regards
>
> Benjamin
>
> PS: When running from eclipse, it is running with no problem....
>