# Linux Alternatives and Oracle Java

DevFeed: [Linux Alternatives and Oracle Java](<https://devfeed.tech/articles/linux-alternatives-and-oracle-java-30652.md>)

Original publisher: [Read original article](<http://bad-concurrency.blogspot.com/2014/01/linux-alternatives-and-oracle-java.html>)

Author: Michael Barker (noreply@blogger.com)

Published: 2014-01-29T19:39:00Z

Content type: tutorial

Language: en

Sources: [Bad Concurrency](<https://devfeed.tech/sources/bad-concurrency.md>)

Topics: [Java](<https://devfeed.tech/topics/java.md>), [Linux](<https://devfeed.tech/topics/linux.md>), [openjdk](<https://devfeed.tech/topics/openjdk.md>), [Fedora](<https://devfeed.tech/topics/fedora.md>), [redhat](<https://devfeed.tech/topics/redhat.md>)

Tags: [command](<https://devfeed.tech/tags/command.md>), [configure](<https://devfeed.tech/tags/configure.md>), [development-tools](<https://devfeed.tech/tags/development-tools.md>), [java](<https://devfeed.tech/tags/java.md>), [jdk](<https://devfeed.tech/tags/jdk.md>), [linux](<https://devfeed.tech/tags/linux.md>), [openjdk](<https://devfeed.tech/tags/openjdk.md>), [oracle](<https://devfeed.tech/tags/oracle.md>), [setup](<https://devfeed.tech/tags/setup.md>)

## AI overview

A guide to using Linux Alternatives to switch between Oracle JDK and OpenJDK implementations. It explains the separate java and javac master configurations and shows how to select the active JRE or JDK from the command line.

## Source excerpt

If, like me, you prefer to run the Oracle version of Java on your Linux machine as the default JDK, you will often find that the Linux distro will have other ideas. Fedora for example has a number of Java based applications as part of the distribution which will include a dependency on the OpenJDK. When the distro installs OpenJDK is will generally be setup as the default for executing the various Java binaries (e.g. 'java', 'javac'). However, the team at Redhat built a system called alternatives which maintains a set of symbolic links that allows the user to switch between multiple implementations of a package the supports the same functionality. I've managed to understand enough about the alternatives package that I can now easily switch between the Oracle JDK and the OpenJDK. Read more "