diff -ru pdfsam-2.2.2e.orig/pdfsam-maine/bin/run-console.sh pdfsam-2.2.2e/pdfsam-maine/bin/run-console.sh --- pdfsam-2.2.2e.orig/pdfsam-maine/bin/run-console.sh 2009-05-21 16:48:26.000000000 +0200 +++ pdfsam-2.2.2e/pdfsam-maine/bin/run-console.sh 2014-05-22 14:36:13.914745949 +0200 @@ -15,8 +15,10 @@ } -DIRNAME="../lib/" -CONSOLEJAR="$DIRNAME/@CONSOLE_JAR_NAME.jar" +DIRNAME="`dirname $0`" +DIRNAME="${DIRNAME%bin}" +DIRNAME="${DIRNAME%/}/lib" +CONSOLEJAR="$DIRNAME/pdfsam-console-2.4.1e.jar" # Setup the classpath if [ ! -f "$CONSOLEJAR" ]; then