summarylogtreecommitdiffstats
path: root/dataexplorer.sh
blob: da34dbb04fe2d896a25ac247df3fb7410b15a9a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env sh

# Check if we have openjdk17 installed
for version in $(archlinux-java status); do
    if [[ $version == "java-17-openjdk" ]]; then
        export PATH="/usr/lib/jvm/java-17-openjdk/bin/:$PATH"
        cd /opt/DataExplorer
        ./DataExplorer
        exit 0
    fi
done

echo "You do not have java-17-openjdk installed."
exit 1