blob: 1e8089e99bf065f5297aa5675a243be943e8e38f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/bin/sh
# Options
JAVA_OPTS="-client -Dawt.useSystemAAFontSettings=gasp -Dawt.useSystemAAFontSettings=on -Xmx2048m"
MONEYDANCE_LIBS="/usr/share/moneydance/lib"
# Choose JAVA
set -- /opt/openjdk-bin-11.* /usr/lib*/openjdk-11
while ! [ -d "${1}" ]; do
if [ ${#} -eq 1 ]; then
echo "Error: No JAVA 11 runtime found!"
exit 1
fi
shift
done
JAVA_HOME="${1}"
# Set CLASSPATH
for MONEYDANCE_JAR in ${MONEYDANCE_LIBS}/*.jar; do
CLASSPATH=${CLASSPATH}:${MONEYDANCE_JAR}
done
# Launch Moneydance
"${JAVA_HOME}"/bin/java -cp "${CLASSPATH}" ${JAVA_OPTS} Moneydance
|