Update Oracle Java from .121 to .131

This commit is contained in:
Joshua Strobl 2017-07-18 20:01:30 +03:00
parent dcfa96149e
commit b08f86b039
No known key found for this signature in database
GPG Key ID: 3F6FD9A6B13E584D
1 changed files with 8 additions and 8 deletions

View File

@ -19,16 +19,16 @@ Extract JRE and move it to /opt:
``` bash
cd ~/Downloads
tar xf jre-8u121-linux-x64.tar.gz
sudo mv jre1.8.0_121 /opt/
sudo ln -svf /opt/jre1.8.0_121/bin/java /usr/bin/java
tar xf jre-8u131-linux-x64.tar.gz
sudo mv jre1.8.0_131 /opt/
sudo ln -svf /opt/jre1.8.0_131/bin/java /usr/bin/java
```
To enable Java in Firefox:
``` bash
mkdir -p ~/.mozilla/plugins
ln -s /opt/jre1.8.0_121/lib/amd64/libnpjp2.so ~/.mozilla/plugins/libnpjp2.so
ln -s /opt/jre1.8.0_131/lib/amd64/libnpjp2.so ~/.mozilla/plugins/libnpjp2.so
```
## JDK
@ -39,14 +39,14 @@ Extract JDK and move it to /opt:
``` bash
cd ~/Downloads
tar xf jdk-8u121-linux-x64.tar.gz
sudo mv jdk1.8.0_121 /opt/
sudo ln -svf /opt/jdk1.8.0_121/bin/java /usr/bin/java
tar xf jdk-8u131-linux-x64.tar.gz
sudo mv jdk1.8.0_131 /opt/
sudo ln -svf /opt/jdk1.8.0_131/bin/java /usr/bin/java
```
To enable Java in Firefox:
``` bash
mkdir -p ~/.mozilla/plugins
ln -s /opt/jdk1.8.0_121/jre/lib/amd64/libnpjp2.so ~/.mozilla/plugins/libnpjp2.so
ln -s /opt/jdk1.8.0_131/jre/lib/amd64/libnpjp2.so ~/.mozilla/plugins/libnpjp2.so
```