diff --git a/davmail.sh b/davmail.sh index ffb8275b..af36b8c8 100644 --- a/davmail.sh +++ b/davmail.sh @@ -2,5 +2,6 @@ # install java : # sudo apt-get install sun-java6-bin # launch davmail : -for i in lib/*; do export CLASSPATH=$CLASSPATH:$i; done -java -cp davmail.jar:$CLASSPATH davmail.DavGateway $1 +BASE=`dirname $0` +for i in $BASE/lib/*; do export CLASSPATH=$CLASSPATH:$i; done +java -cp $BASE/davmail.jar:$CLASSPATH davmail.DavGateway $1