LoginSignup
23
22

More than 5 years have passed since last update.

UbuntuにJava8をインストールする

Posted at

Ubuntuのバージョン

$ cat /etc/issue
Ubuntu 12.04.3 LTS \n \l

インストール

$ sudo add-apt-repository ppa:webupd8team/java
sudo: add-apt-repository: command not found

add-apt-repositoryがないと言われたら、software-properties-commonをインストールする。python-software-propertiesも必要なので入れる。

$ sudo apt-get install software-properties-common python-software-properties
$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get update
$ sudo apt-get install oracle-java8-installer

java8自身をインストールするときに確認画面が出てくるけどそれはOKしとけばOK

Special Thanks

Java - ubuntuでoracle-jdk8をインストールしておく - Qiita
sudo apt-get install software-properties-common python-software-properties

23
22
1

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
23
22