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
I had a similar issue. I had all of these on my system:
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.