Which JRE to select?

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)?

This is also what i would suggest


The JRE package is not installed for me, must it be installed?
Is it necessary to install it?

YES it is.

Why should it be installed?

Because some AUR package needs it - otherwise there would be no demand for installingā€¦ :innocent:

1 Like

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:

sudo pacman -S jre11-openjdk jre11-openjdk-headless
PATH="/usr/lib/jvm/java-11-openjdk/bin/:$PATH" offroad

FS#72969 : [offroad] NoSuchMethodException .


This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.