This message will appear at the time of updating the AUR package
yay -Syu --aur
:: Searching AUR for updates...
:: There are 4 providers available for java-runtime-headless:
:: Repository extra
1) jre-openjdk-headless 2) jre11-openjdk-headless 3) jre17-openjdk-headless 4) jre8-openjdk-headless
Enter a number (default=1):
Should I install the package (jre-openjdk-headless)?
Some packages may require older versions in which case multiple versions will have to be kept installed to allow those apps to work. That concerns not only AUR packages but also apps in the official community repos, so be careful to remove ‘double’ installs.
Offroad, for example, won’t work unless a java version below 12 is installed with: