LoginSignup
0
0

More than 5 years have passed since last update.

CentOS 6でOracle JDK 7を導入する方法

Last updated at Posted at 2015-08-12

CentOS 6でOracle JDK 7を導入する方法

動作環境

compornent version
Centos 6.6

1 下記スクリプトを実行。

  • すでに導入済みのJDK,JREを削除後、Oracle JDK 7を導入します。
yum list installed | grep "java-" | awk '{print $1}' | xargs yum -y remove {}
cd /usr/local/download
wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/7u79-b15/jdk-7u79-linux-x64.rpm"
yum -y localinstall --nogpgcheck jdk-7u79-linux-x64.rpm
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0