#!/usr/bin/sh
#
# PDFsam launcher - delegates to the upstream pdfsam.sh using the
# system Java runtime (>= 11) guaranteed by the package dependencies.
# We pin JAVACMD so pdfsam.sh skips its bundled-runtime / JAVA_HOME
# heuristics and always calls the distro java binary.

export JAVACMD=/usr/bin/java

exec /usr/share/java/pdfsam/bin/pdfsam.sh "$@"
