Java version change on CentOS

Procedure when you want to change the java version on centOS. It's a memo for myself because I check it every time.

What is written is almost the same as the following article. I was allowed to reference. Thank you very much.

Environment implemented this time ・ CentOS release 6.9 (Final) Java I want to drop this time ・ Java1.8.x

Check the installed java version. java -version

Remove the installed java.

yum remove java-1.6.0-openjdk

#### **`yum remove java-1.7.0-openjdk`**

If you delete it

java -version
bash: /usr/bin/java:There is no such file or directory

Will be.

Click the download button for the version you want from the following page

Check the radio button of Accept License Agreement, Right-click the file you want to drop → copy the link address


wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" <Copyed address>


rpm -ivh xxx.rpm

```java -version```

#### **`java version "1.8.0_151"`**


Recommended Posts

Java version change on CentOS
Java version control on macOS
Install Java 9 on windows 10 and CentOS 7
Change JDK and Tomcat versions on CentOS
Java version check
Eclipse screen layout change method (Java version)
Java version control with jenv on OSX
OpenVPN on CentOS 8
Let's touch on Java
Maven on CentOS 7 tutorial
[Java] Convert PDF version
Install Java on Mac
Change seats with java
Install Golang on CentOS 8
Java version notation comparison
Install Neo4j 4.1.3 on centOS
Tomcat v8 on CentOS7
Run PostgreSQL on Java
Install Vertica 10.0 on CentOS 6.10
Zabbix 5 installation on CentOS 8
Install PostgreSQL 12 on Centos8
Install nginx on centOS7
The story that Java security settings change depending on the encryption policy on RHEL / CentOS
Switching java version (memorial)
Install Python 3 on CentOS 7
Install kuromoji on CentOS7
Use bat on Centos.
Jetty v8 on CentOS7
OpenJDK installation on CentOS 7
Install PostGIS 2.5.5 on CentOS7
Install jpndistrict on CentOS 7
CentOS 7 curl version upgrade
Install Redmine 4.1.1 on CentOS 7
Smokeping Install on CentOS7
Install PostgreSQL 13 on CentOS 7.5
Tomcat cannot be started due to java version change
Java development environment construction on Mac-JDK Install (2020 preservation version)
Install MySQL 5.6 on CentOS6 [How to specify the version]
Run kuromoji on Win10 + Eclipse + Java environment (January 2020 version)
Try RabbitMQ + PHP on CentOS
Learning Java framework # 1 (Mac version)
Java version 8 and later features
Install OpenJDK7 (JAVA) on ubuntu 14.04
How to lower java version
Make exFat available on CentOS 7
Downgrade Java on openSUSE Linux
Reflection on Java string manipulation
On passing Java Gold SE 8
Oracle Java 8 on Docker Ubuntu
Version control Java with SDKMAN
Change java encoding in windows
Install OpenFOAM v2006 on CentOS
Set up Gitolite on CentOS 7
Install Java on WSL Ubuntu 18.04
Install Jenkins on Docker's CentOS
Install Apache on CentOS on VirtualBox
Run java applet on ubuntu
Put Oracle Java 8 on CircleCI 2
Introducing Let's Encrypt on CentOS 7
Install rsync on CentOS8 (version check) and file backup (synchronization)
Simplify java version switching (Mac)