Long story short, I have jre11 and jre8 installed:
❯ pamac list --installed | grep "jre"
jre11-openjdk 11.0.19.u7-1 extra 551.0 kB
jre11-openjdk-headless 11.0.19.u7-1 extra 167.6 MB
jre8-openjdk 8.372.u07-1 extra 417.2 kB
jre8-openjdk-headless 8.372.u07-1 extra 104.1 MB
and this is the error I get:
[javac] javac: invalid target release: 11
I have tested this on Arch in a clean-install VM, and it builds just fine with the jre11-openjdk as the following video attests:
I waited over a month before posting here, hoping that some update on Manjaro jre version solves the issue (as I cannot decipher why it is not working). But now in accordance to the maintainer’s suggestion I’m opening this thread hoping for some useful tips and solution.
Please install JDK instead of JRE. JRE is a runtime only environment, JDK is required for compilation. So despite you have JRE 11, your JDK might be… I don’t know, 8?