Install Java 9 JDK dan JRE di Linux Fedora 27
Daftar Isi
Install Java 9 JDK dan JRE |
1. Download File-File berikut:
- jdk-9.0.4_linux-x64_bin.rpm
- jre-9.0.4_linux-x64_bin.rpm
Download di situs resminya disini : http://www.oracle.com/technetwork/java/javase/downloads/index.html
2. Mulai Install dengan perintah :
$ sudo dnf install jdk-9.0.4_linux-x64_bin.rpm
$ sudo dnf install jre-9.0.4_linux-x64_bin.rpm
Tentunya anda harus berada di folder tempat file *.rpm berada
3. Atur Java Environment Variabel
JAVA_HOME dan Path Variable JDK
# export JAVA_HOME=/usr/java/jdk-9.0.4
# export PATH=$PATH:/usr/java/jdk-9.0.4/bin
JAVA_HOME dan Path Variable JRE
# export JAVA_HOME=/usr/java/jre-9.0.4
# export PATH=$PATH:/usr/java/jre-9.0.4/bin
4. Cek Java
# java --version
java 9.0.4
Java(TM) SE Runtime Environment (build 9.0.4+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.4+11, mixed mode)