I have 3 java programs available in the AUR and with Java 9 released there is a small problem.
I made my first package with inspiration from another java program in the AUR and used much of its structure, including the java version check, a check that will fail for Java 9.
So my question is, is there a really really good way to check for a minimum and possible maximum java version?
if ! /usr/bin/java -version 2>&1 | grep 'version "1.8' >/dev/null
echo "mapollage requires Java 8" >&2
exec /usr/bin/java -jar '/usr/share/java/mapollage/mapollage.jar' "$@"