Interestingly enough, neither one of these worked.
joel@joel-81sr:~$ sudo pacman -Sy jdk-openjdk && sudo pacman -Syu
[sudo] password for joel:
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
multilib is up to date
resolving dependencies...
looking for conflicting packages...
:: jdk-openjdk and jre-openjdk are in conflict. Remove jre-openjdk? [y/N]
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: jdk-openjdk and jre-openjdk are in conflict
joel@joel-81sr:~$ pamac install jdk-openjdk --no-upgrade; pamac update --no-aur
Preparing...
Resolving dependencies...
Checking inter-conflicts...
To upgrade (1):
jdk-openjdk 21.u35-8 (21.u35-3) extra 479.7 MB
To remove (2):
jre-openjdk 21.u35-3 (Conflicts With: jdk-openjdk) extra
jre-openjdk-headless 21.u35-3 (Conflicts With: jdk-openjdk) extra
Total download size: 479.7 MB
Total installed size: 867.7 MB
Total removed size: 202.6 MB
Apply transaction ? [y/N]
Transaction cancelled.
Preparing...
==== AUTHENTICATING FOR org.manjaro.pamac.commit ====
Authentication is required to install, update, or remove packages
Authenticating as: Joel Madero (joel)
Password:
==== AUTHENTICATION COMPLETE ====
Synchronizing package databases...
Resolving dependencies...
Checking inter-conflicts...
Error: unresolvable package conflicts detected
Error: Failed to prepare transaction:
conflicting dependencies:
- jdk-openjdk and jre-openjdk are in conflict
As this has been a problem for 2 weeks, I suggest switching branches from unstable to stable to get better information from the update announcements to resolve known issues