# Jre and jdk conflict while doing a pacman update

**URL:** <https://forum.endeavouros.com/t/jre-and-jdk-conflict-while-doing-a-pacman-update/47799>\
**Category:** Newbie\
**Created:** [November 13, 2023, 9:58am UTC](https://forum.endeavouros.com/t/jre-and-jdk-conflict-while-doing-a-pacman-update/47799 "2023-11-13T09:58:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![murtaza52](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/murtaza52/32/80885_2.png) [@murtaza52](https://forum.endeavouros.com/u/murtaza52)\
**Post date:** [November 13, 2023, 9:58am UTC](https://forum.endeavouros.com/t/jre-and-jdk-conflict-while-doing-a-pacman-update/47799/1 "2023-11-13T09:58:48Z")

</div>

Hi,

I tried to update my system, and get the below error -

> ➜ ~ sudo pacman -Syyuu  
> [sudo] password for murtaza:  
> :: Synchronizing package databases…  
> endeavouros 26.7 KiB 15.2 KiB/s 00:02 [----------------------------------------------------------] 100%  
> core 132.8 KiB 50.4 KiB/s 00:03 [----------------------------------------------------------] 100%  
> extra 8.3 MiB 1641 KiB/s 00:05 [----------------------------------------------------------] 100%  
> multilib 141.2 KiB 52.3 KiB/s 00:03 [----------------------------------------------------------] 100%  
> :: Starting full system upgrade…  
> resolving dependencies…  
> looking for conflicting packages…  
> error: unresolvable package conflicts detected  
> error: failed to prepare transaction (conflicting dependencies)  
> :: jdk-openjdk and jre-openjdk are in conflict

The above error started a couple of weeks back.

I only have one java environment installed -

> ➜ ~ archlinux-java status  
> Available Java environments:  
> java-21-openjdk (default)  
> ➜ ~ java --version  
> openjdk 21 2023-09-19  
> OpenJDK Runtime Environment (build 21+35)  
> OpenJDK 64-Bit Server VM (build 21+35, mixed mode, sharing)

If I try to uninstall the jre I get the following error -

> ➜ ~ sudo pacman -R jre-openjdk  
> checking dependencies…  
> error: failed to prepare transaction (could not satisfy dependencies)  
> :: removing jre-openjdk breaks dependency ‘jre21-openjdk=21.u35-3’ required by jdk-openjdk  
> :: removing jre-openjdk breaks dependency ‘java-runtime’ required by leiningen

How do I resolve the above conflict ?

---

<div class="post-metadata">

**Author:** ![Bryanpwo](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/bryanpwo/32/130600_2.png) [@Bryanpwo](https://forum.endeavouros.com/u/Bryanpwo)\
**Post date:** [November 13, 2023, 10:08am UTC](https://forum.endeavouros.com/t/jre-and-jdk-conflict-while-doing-a-pacman-update/47799/2 "2023-11-13T10:08:09Z")

</div>

Just read the top pinned post on the forum 😉

> [@Incoming changes in JDK / JRE 21 packages may require manual intervention](https://forum.endeavouros.com/t/incoming-changes-in-jdk-jre-21-packages-may-require-manual-intervention/47387):
>
> The Arch team announced a possible manual intervention, they announced: (Underneath is a literal quote from the Arch announcement) We are introducing a change in JDK/JRE packages of our distro. This is triggered from the way a JRE is build in modern versions of Java (\>9). We are introducing this change in Java 21. To sum it up instead of having JDK and JRE packages coexist in the same system we will be making them conflict. The JDK variant package includes the runtime environment to exec…

---

<div class="post-metadata">

**Author:** ![murtaza52](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/murtaza52/32/80885_2.png) [@murtaza52](https://forum.endeavouros.com/u/murtaza52)\
**Post date:** [November 13, 2023, 2:09pm UTC](https://forum.endeavouros.com/t/jre-and-jdk-conflict-while-doing-a-pacman-update/47799/3 "2023-11-13T14:09:40Z")

</div>

thanks 🙂

---

<div class="post-metadata">

**Author:** ![system](https://forum.endeavouros.com/uploads/default/original/2X/9/9ea52f9fd5ef8e609e593c362d61a36295f48be8.png) [@system](https://forum.endeavouros.com/u/system)\
**Post date:** [November 15, 2023, 2:09pm UTC](https://forum.endeavouros.com/t/jre-and-jdk-conflict-while-doing-a-pacman-update/47799/4 "2023-11-15T14:09:58Z")

</div>

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