Problem with jdk and jre conflicting

Hello, I’m new here so sorry if I am doing something wrong,also sorry if the text is hard to understand English is not my first language and I am still learning it.
I just recently decided to switch my operational system from Windows to a Linux based one and by recommendation of some friends I ended choosing the KDE version of Manjaro. My problem is that at some point I installed both jdk and jre,and now they are conflicting with each other when I try to update JDK. I read some other posts here where they said that I needed to uninstall one of them,which was going to be JRE, but when I try to do that it says that I can’t uninstall it. So what should I do ?


trying uninstall just JRE


trying to uninstall both, so I could install just JDK after.


the original problem

Use this command to install jdk-openjdk

sudo pacman -Sy jdk-openjdk

and then this command to update other repository packages:

sudo pacman -Syu

Or use Manjaro package manager pamac:

pamac install jdk-openjdk --no-upgrade; pamac update --no-aur
2 Likes

this command worked!
pamac install jdk-openjdk --no-upgrade; pamac update --no-aur

It showed me exactly which thing was conflicting with the other, so became easy to solve.
Thank you very much for your help !

1 Like

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