As we were setting up a machine that would be used for software development, we came to the need of installing a Java Development Kit
(JDK
).
There are two popular choices on the web between the OpenJDK
and the Oracle JDK
, we decided to go with the OpenJDK
option which is a free and open source implementation of the Java Platform and it is part of the official Fedora repositories.
To install the OpenJDK
along with all the needed libraries for development we used the following command:
sudo dnf install java-1.8.0-openjdk java-1.8.0-openjdk-devel;
On our GNU
/Linux
Fedora
the installation folder of the JDK
was /usr/lib/jvm/java-1.8.0-openjdk
.
This post is also available in: Greek
JDK switcher also is an option. Would like to hear something from bytefreaks for that 🙂
Amigo it’s simple for switching between openjdk and oracle jdk . I was struggle to do it in order to use android sdk which prefers oracle’s java,
sudo update-alternatives –config java
sudo update-alternatives –config javac
Cheers and kanonise gia mpyres 😉