Download your java tar.gz from java.com and unpack the tag.gz in /opt/.
$ sudo tar -zxvf
A new folder in /opt/ is created with the content of the downloaded tar.gz file. We are going to use links so we can install multiple version in the future if that would be necessary.
$ sudo ln /opt/
We need to check the home variables:
$ JHome=/opt/java-sun
$ update-alternatives --install /usr/bin/java java ${JHOME% * /}/bin/java 20000
To check this java is the prefered way run:
$ update-alternatives --config java
Now we still need to configure the Iceweasel browser. Close all instances first.
$ sudo ln -sf /opt/java-sun/lib/amd64/libnpjp2.so /usr/lib/mozilla/plugins/libnpjp2.so
To check if everything works, open your Iceweasel browser and go to http://www.java.com/en/download/installed.jsp. Click on verify Java version and give it the permission to run.
No comments:
Post a Comment