summarylogtreecommitdiffstats
path: root/moneydance.sh
blob: 2a6d533fd79374e2291dbcabdd672810d4c6f010 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
if [ -L /usr/lib/jvm/default ]; then
    export PATH=/usr/lib/jvm/default/bin/:$PATH
else
    printf "[ ERROR ] No default Java environment available.\n"
    archlinux-java status
    printf  "\nFix your Java environment by running:\n   sudo archlinux-java set <JAVA_ENV>"
    exit 1
fi
export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=gasp -Dawt.useSystemAAFontSettings=on'
for name in /usr/share/java/moneydance/*.jar; do
  CP=$CP:$name
done
java -cp "$CP" Moneydance