$CLASSPATH must be exported from Unix starter script
Brought to you by:
jeugenepace
I installed doctorj-5.0.0-1.i386.rpm on Fedora Core 2.
It does not work out of the box:
Exception in thread "main"
java.lang.NoClassDefFoundError: org/incava/doctorj/Main
I found in /usr/bin/doctorj:
if [ -n "$CLASSPATH" ]; then
CLASSPATH="$CLASSPATH:${jarfile}"
else
CLASSPATH="${jarfile}"
fi
This is fine if $CLASSPATH is already an exported
environment variable. If it isn't, setting it does not
make it one. You need to add one line after the ones
quoted above:
export CLASSPATH
Then it runs.