How To Install Java 8 On Centos/Rhel 7/6 and Fedora 28-23
How To Install Java 8 On Centos/Rhel 7/6 and Fedora 28-23
8 on CentOS/RHEL
7/6 and Fedora
28-23
Written by Rahul K., Updated on August 30, 2018
JAVA
POPULAR POSTS
1 of 38 10/18/18, 12:04 PM
How To Install Java 8 (JDK 8u181) On CentOS/R... https://tecadmin.net/install-java-8-on-centos-rhel-...
# cd /opt/
# wget --no-cookies --no-check-certificate --header "Cookie: g
# tar xzf jdk-8u181-linux-x64.tar.gz
2 of 38 10/18/18, 12:04 PM
How To Install Java 8 (JDK 8u181) On CentOS/R... https://tecadmin.net/install-java-8-on-centos-rhel-...
# cd /opt/jdk1.8.0_181/
# alternatives --install /usr/bin/java java /opt/jdk1.8.0_181/
# alternatives --config java
Selection Command
-----------------------------------------------
* 1 /opt/jdk1.7.0_71/bin/java
+ 2 /opt/jdk1.8.0_45/bin/java
3 /opt/jdk1.8.0_144/bin/java
4 /opt/jdk1.8.0_181/bin/java
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can
3 of 38 10/18/18, 12:04 PM
How To Install Java 8 (JDK 8u181) On CentOS/R... https://tecadmin.net/install-java-8-on-centos-rhel-...
# java -version
# export JAVA_HOME=/opt/jdk1.8.0_181
# export JRE_HOME=/opt/jdk1.8.0_181/jre
# export PATH=$PATH:/opt/jdk1.8.0_181/bin:/opt/jdk1.8.0_181/jr
SHARE IT!
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can
4 of 38 10/18/18, 12:04 PM
How To Install Java 8 (JDK 8u181) On CentOS/R... https://tecadmin.net/install-java-8-on-centos-rhel-...
RAHUL K.
RELATED POSTS
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can
5 of 38 10/18/18, 12:04 PM
How To Install Java 8 (JDK 8u181) On CentOS/R... https://tecadmin.net/install-java-8-on-centos-rhel-...
124 COMMENTS
Regards
Sumit Sahay
6 of 38 10/18/18, 12:04 PM
How To Install Java 8 (JDK 8u181) On CentOS/R... https://tecadmin.net/install-java-8-on-centos-rhel-...
COMMENTS *
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can
7 of 38 10/18/18, 12:04 PM
How To Install Java 8 (JDK 8u181) On CentOS/R... https://tecadmin.net/install-java-8-on-centos-rhel-...
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can
8 of 38 10/18/18, 12:04 PM
How To Install Java 8 (JDK 8u181) On CentOS/R... https://tecadmin.net/install-java-8-on-centos-rhel-...
chmod +x /opt/jdk1.8.0_161/bin/java
SHAHAMA
April 12, REPLY TO SHAHAMA
2018 at 4:54 am
Thank you. It is working fine. This
article is very helpful. Keep on
Posting
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can
9 of 38 10/18/18, 12:04 PM
How To Install Java 8 (JDK 8u181) On CentOS/R... https://tecadmin.net/install-java-8-on-centos-rhel-...
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can
10 of 38 10/18/18, 12:04 PM
How To Install Java 8 (JDK 8u181) On CentOS/R... https://tecadmin.net/install-java-8-on-centos-rhel-...
please help i can access files via ssh and winscp but with
no permission to edit.
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can
11 of 38 10/18/18, 12:04 PM
How To Install Java 8 (JDK 8u181) On CentOS/R... https://tecadmin.net/install-java-8-on-centos-rhel-...
SD REPLY TO SD
MADHUKAR REDDY
January 9, 2018 REPLY TO MADHUKAR
at 5:52 am
instructions messed up the root login
PATH
MADHUKAR REDDY
January REPLY TO MADHUKAR
9, 2018 at 6:08 am
Found the problem. Last
instruction to update
/etc/environment messing up
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can
12 of 38 10/18/18, 12:04 PM
How To Install Java 8 (JDK 8u181) On CentOS/R... https://tecadmin.net/install-java-8-on-centos-rhel-...
cd /opt
ln -s /opt/jdk1.8.0_151 jdk1.8
export JAVA_HOME=/opt/jdk1.8
export JRE_HOME=/opt/jdk1.8/jre
export PATH=$PATH:/opt/jdk1.8/bin:/opt
/jdk1.8/jre/bin
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can
13 of 38 10/18/18, 12:04 PM
How To Install Java 8 (JDK 8u181) On CentOS/R... https://tecadmin.net/install-java-8-on-centos-rhel-...
14 of 38 10/18/18, 12:04 PM
How To Install Java 8 (JDK 8u181) On CentOS/R... https://tecadmin.net/install-java-8-on-centos-rhel-...
%2Fwww.oracle.com%2F; oraclelicense=accept-
securebackup-cookie” “http://download.oracle.com/otn-
pub/java/jdk/8u152-
b01/090f390dda5b47b9b721c7dfaa008135/jdk-8u144-
linux-x64.tar.gz” Changed it to the last arquive (152)
It’s coming with 404 not found HTTP request, can you help
me, please?
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can
15 of 38 10/18/18, 12:04 PM
How To Install Java 8 (JDK 8u181) On CentOS/R... https://tecadmin.net/install-java-8-on-centos-rhel-...
16 of 38 10/18/18, 12:04 PM
How To Install Java 8 (JDK 8u181) On CentOS/R... https://tecadmin.net/install-java-8-on-centos-rhel-...
file:/tmp/RtmpvEvWZD
/backend_port2cd67996e589
Run with –help for usage help or –verbose for
debug output
Error in sparkR.sparkContext(master, appName,
sparkHome, sparkConfigMap, :
JVM is not ready after 10 seconds
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can
17 of 38 10/18/18, 12:04 PM
How To Install Java 8 (JDK 8u181) On CentOS/R... https://tecadmin.net/install-java-8-on-centos-rhel-...
Hi Team,
export PATH=$PATH:
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can
18 of 38 10/18/18, 12:04 PM
How To Install Java 8 (JDK 8u181) On CentOS/R... https://tecadmin.net/install-java-8-on-centos-rhel-...
MO CHI REPLY TO MO
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can
19 of 38 10/18/18, 12:04 PM
How To Install Java 8 (JDK 8u181) On CentOS/R... https://tecadmin.net/install-java-8-on-centos-rhel-...
20 of 38 10/18/18, 12:04 PM
How To Install Java 8 (JDK 8u181) On CentOS/R... https://tecadmin.net/install-java-8-on-centos-rhel-...
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can
21 of 38 10/18/18, 12:04 PM
How To Install Java 8 (JDK 8u181) On CentOS/R... https://tecadmin.net/install-java-8-on-centos-rhel-...
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can
22 of 38 10/18/18, 12:04 PM
How To Install Java 8 (JDK 8u181) On CentOS/R... https://tecadmin.net/install-java-8-on-centos-rhel-...
Thanks
J REPLY TO J
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can
23 of 38 10/18/18, 12:04 PM
How To Install Java 8 (JDK 8u181) On CentOS/R... https://tecadmin.net/install-java-8-on-centos-rhel-...
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can
24 of 38 10/18/18, 12:04 PM
How To Install Java 8 (JDK 8u181) On CentOS/R... https://tecadmin.net/install-java-8-on-centos-rhel-...
This does not allow for a yum update in CentOS or Red Hat.
Thanks,
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can
25 of 38 10/18/18, 12:04 PM
How To Install Java 8 (JDK 8u181) On CentOS/R... https://tecadmin.net/install-java-8-on-centos-rhel-...
PAUL OFFORD
October 17, REPLY TO PAUL
2015 at 2:24 pm
Hi,
1. Ctl-Alt-F2 to switch to a
command line console
2. Login with your account
details – you’ll get errors as the
shell script runs but don’t worry
for the moment
3. Enter the command
PATH=$PATH:/bin
4. Enter the command startx
5. Once the desktop appears
open a terminal session
6. Enter the command su –
5. Enter your root password at
the prompt
6. Again, enter PATH=$PATH:/bin
7. Enter the command gedit
/etc/environment
8. Delete all lines in the file and
save
9. Restart Centos
Best regards…Paul
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can
26 of 38 10/18/18, 12:04 PM
How To Install Java 8 (JDK 8u181) On CentOS/R... https://tecadmin.net/install-java-8-on-centos-rhel-...
DAWOOD
REPLY TO DAWOOD
August 7, 2017 at 2:11 am
Hi, i messed up my centos
6 machine. i have the
same problem. but i try to
do what you have
explained here, the
instruction # 4 does not
work. it says -bash:
comand not found.
27 of 38 10/18/18, 12:04 PM
How To Install Java 8 (JDK 8u181) On CentOS/R... https://tecadmin.net/install-java-8-on-centos-rhel-...
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can
28 of 38 10/18/18, 12:04 PM
How To Install Java 8 (JDK 8u181) On CentOS/R... https://tecadmin.net/install-java-8-on-centos-rhel-...
29 of 38 10/18/18, 12:04 PM
How To Install Java 8 (JDK 8u181) On CentOS/R... https://tecadmin.net/install-java-8-on-centos-rhel-...
Please help!
30 of 38 10/18/18, 12:04 PM
How To Install Java 8 (JDK 8u181) On CentOS/R... https://tecadmin.net/install-java-8-on-centos-rhel-...
uname -m
31 of 38 10/18/18, 12:04 PM
How To Install Java 8 (JDK 8u181) On CentOS/R... https://tecadmin.net/install-java-8-on-centos-rhel-...
or directory
uname -m
http://tecadmin.net/install-java-8-on-centos-rhel-
and-fedora/
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can
32 of 38 10/18/18, 12:04 PM
How To Install Java 8 (JDK 8u181) On CentOS/R... https://tecadmin.net/install-java-8-on-centos-rhel-...
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can
33 of 38 10/18/18, 12:04 PM
How To Install Java 8 (JDK 8u181) On CentOS/R... https://tecadmin.net/install-java-8-on-centos-rhel-...
ALEJANDRO
November 1, 2014 at 1:56 REPLY TO ALEJANDRO
pm
This is a great concise article, working fine to
centOs 6.5, thanks a lot.
34 of 38 10/18/18, 12:04 PM
How To Install Java 8 (JDK 8u181) On CentOS/R... https://tecadmin.net/install-java-8-on-centos-rhel-...
ln -s /opt/jdk1.8.0_45/bin/java java
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can
35 of 38 10/18/18, 12:04 PM
How To Install Java 8 (JDK 8u181) On CentOS/R... https://tecadmin.net/install-java-8-on-centos-rhel-...
RAVIKIRAN PATIL
August 20, 2014 at 3:25 pm REPLY TO RAVIKIRAN
Thank you so much Rahul Kumar……. This
article is the best article that I found.
PATH=$PATH:$HOME/.local/bin:$HOME
/bin:$HOME/Dropbox/Apps/Bash_path_linux/:/opt
/jdk1.8.0_05/bin:/opt/jdk1.8.0_05/jre/bin
export JAVA_HOME=/opt/jdk1.8.0_05
export JRE_HOME=/opt/jdk1.8.0_05/jre
export PATH
Hope it helps.
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can
36 of 38 10/18/18, 12:04 PM
How To Install Java 8 (JDK 8u181) On CentOS/R... https://tecadmin.net/install-java-8-on-centos-rhel-...
It looks jdk-8u25-linux-x64.tar.gz
is not available at current
directory. Make sure the file
exists there with correct name.
SUMIT SAHAY
REPLY TO SUMIT
September 14, 2018 at 10:16
am
Hi Rahul,
37 of 38 10/18/18, 12:04 PM
How To Install Java 8 (JDK 8u181) On CentOS/R... https://tecadmin.net/install-java-8-on-centos-rhel-...
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can
38 of 38 10/18/18, 12:04 PM