F42 Change Proposal: Third Party Legacy JDKs (System-Wide)

I had highlighted it in Changes/ThirdPartyLegacyJdks - Fedora Project Wiki

I am a java developer and I work mainly with oracle applications which require a specific jdk. I rarely use the open jdk’s because often they don’t work. I usually install specfic jdk’s myself and set my paths to accommodate that.

I really don’t see this as being an issue with me specifically unless it hampers my ability to do that. Having a default Open-Jdk is really a moot point in my situation. Would this change the ability to use “alternatives --config java”,?

hi! Nope. The alternatives will remain same. All rpms over world, as far as I know, are honouring the ancient agreement on java/javac masters and set of slaves. Other masters are not that hardly agree, but as far as I know all rpms of all major distributions, including temurins of course, are comaptible.

1 Like

This change proposal has now been submitted to FESCo with ticket #3277 for voting.

To find out more, please visit our Changes Policy documentation.

1 Like

This change has been accepted by FESCo for Fedora Linux 42. A full list of approved changes to date can be found on the Change Set Page.

To find out more about how our changes policy works, please visit our docs site.

I use Java 11 to build a server project with system-wide Java 21 for the client, and did this on F41/dnf5:

Add repo:

sudo dnf install 'adoptium-temurin-java-repository'

Enable:

sudo dnf config-manager 'setopt' 'adoptium-temurin-java-repository'.'enabled'='1'

Install Fedora/non-Temurin non-headless Java:

sudo dnf install java-openjdk --setopt='adoptium-temurin-java-repository.enabled=0' --exclude='temurin*'

Java 11:

sudo dnf install 'temurin-11-jdk'
JAVA_HOME='/usr/lib/jvm/temurin-11-jdk'
/usr/lib/jvm/temurin-11-jdk/bin/java

I managed to get things hooked up ideally with that project and different Java versions and am fine with the change :smiley:

Thanx!