Oracle JDK 8 Fedora 28 - Installation
-
So to Install Oracle Java JDK 8 Package
Access the target directory:cd $HOME/Downloads
Login as SuperUser (This to make shorter the following commands):
sudo su
Then to Install Oracle JDK 8 for Fedora 28:
sudo dnf install ./jdk-8-linux*.rpm
-
Then Setup Oracle Java JDK 8
(Simply copy & paste these commands)update-alternatives --install /usr/bin/java java /usr/java/jdk1.8*/bin/java 1065
update-alternatives --install /usr/bin/javac javac /usr/java/jdk1.8*/bin/javac 1065
update-alternatives --install /usr/bin/jar jar /usr/java/jdk1.8*/bin/jar 1065
update-alternatives --install /usr/bin/javaws javaws /usr/java/jdk1.8*/bin/javaws 1065
And Check/Set the System Java Version in Use with:
update-alternatives --config java
To Switch of Java Version Just Enter the Selection Number on First, Column. :)
-
Setting JAVA_HOME User Environment Variable (Optional)
Achieve the SuperUser session:exit
Edit the Bash environment Configuration file:
nano $HOME/.bashrc
Append:
export JAVA_HOME=/usr/lib/jvm/jdk1.8[uX]
Replace the [uX] Looking for the Installed Java 8 Version with:
ls /usr/lib/jvm/
Ctr+x to Save & Exit from nano Editor :)
And Load New Bash Configutation simply with:bash
-
Finally, Test New Java JDK 8 Installation.
java -version
How to Install Eclipse for Java 8 on Fedora
Now Thanks to Oracle-Sun Corporation you are able to Successfully Start Up with Java 8 Development.
Welcome to Java 8 Challenge! ;)
Installing Latest IntelliJ IDEA for Java Scala & Android on Fedora
Contents