I have the same issue described here: Jdk-openjdk and jre-openjdk are in conflict #2 and the “solution” doesn’t work for me. It would make sense to comment on that thread, but apparently you want me to create a new thread about the exact same topic instead, so here I am.
I did “sudo pacman -Syu jdk-openjdk” but I still get the same error at the end:
error: failed to prepare transaction (conflicting dependencies)
:: jdk-openjdk and jre-openjdk are in conflict
It is a common problem with the last update, the solution that we have applied to several computers from a group is to remove the conflicting packages, update and if necessary reinstall them
I had a similar issue. I had all of these on my system:
jre-openjdk-headless
jre-openjdk
jdk-openjdk
Uninstalling any of them did not work. Uninstalling all of them did not work because they were required by several programs. Explicitly re-installing any of them did not work. The only solution was to first uninstall all programs that require Java, then uninstall all openjdk packages, then re-install jdk-openjdk, then re-install the programs requiring Java.