is there a canonical way to distinguish the active Java version in the launch script of a Java application? (a) I could do a switch on the `archlinux-java get` output. However, this strategy might fail for unconsidered JVMs from AUR. (b) I could parse the `java -version` output. However, the output is somewhat complex to parse and its syntax differs between Java versions and implementations. (c) Some packages rely on aur/archlinux-java-run. The Arch Linux Wiki page does not mention any strategy or preferred way. 
Rationale: jd-gui needs additional JVM arguments to make it run on Java ⩾9.