This article shows how to manually install Oracle’s Java Runtime Environment (JRE) on Ubuntu. By 2011, Oracle JRE was included directly in Ubuntu and Debian. For licensing reasons, however, these packages were removed there.
Manually install JRE
The following steps to manually install Oracle’s JRE 8 are based on the wiki’s information on ubuntuusers.com, along with a symbolic link for easier later updates.
- Download Oracle Java: http://www.java.com/en/download/
To install this version, perform the following steps:
sudo mkdir -p / opt / java / 64
sudo mv ~ / jre-8u <VERSION> -linux-x64.tar.gz / opt / java / 64
cd / opt / java / 64
sudo tar xzvf ./jre-8u<VERSION>-linux-x64.tar.gz
sudo ln -s jre1.8.0_ <VERSION> jre
sudo update-alternatives --install "/ usr / bin / java" "java" "/ opt / java / 64 / jre / bin / java" 1
sudo update-alternatives --install "/ usr / bin / javaws" "javaws " / opt / java / 64 / jre / bin / javaws" 1
sudo update-alternatives --install "/usr/lib/mozilla/plugins/mozilla-javaplugin.so" "mozilla-javaplugin.so" "/opt/java/64/jre/lib/amd64/libnpjp2.so" 1
sudo update-alternatives --set java / opt / java / 64 / jre / bin / java
sudo update-alternatives --set javaws / opt / java / 64 / jre / bin / javaws
sudo update-alternatives --config mozilla-javaplugin.so
0 Comments