Manually install the Sun Java Plugin + Iceweasel on Debian Wheezy
Who, like me, are using Debian GNU / Linux as the operating system for the desktop, will certainly have noticed that a few months ago about this fantastic distribution has been eliminated the package version of Java produced by SUN (now Oracle) and in its place is You can use the version of OpenJDK . At the same time they are also missing the plugin for Iceweasel (the default browser installed in Debian) package related to the SUN (now Oracle) and in their place you need to use the IcedTea plugin. However, it may happen to have the need to use the right version of Java Oracle closed and its plugin for Iceweasel and, therefore, I decided to write this guide that explains how to install them manually on your desktop and use the debian version painlessly closed Java. First you need to download the binary package of the ' latest version of Java from Oracle's website. By the time I am writing the original version 6 update 31. After downloading the appropriate files through browser, we proceed by opening a terminal and acquiring root privileges; then you move to the directory where the file is binary and attributed to him the rights to read and execute even simple users:
# Chmod 755 jre-6u31-linux-x64.bin
At this point we run the binary file downloaded; this does not momentanemente before returning user without root privileges:
$ Sh jre-6u31-linux-x64.bin
As you will note, the execution of the binary file will do nothing but create a new subdirectory inside the files needed to run programs in java.
At this point we are ready to teach you to use Debian as their own version of Java that you just downloaded. To do this we will use the tool magnifito "update-alternatives".
Still in the end we regain root privileges and execute the following commands:
# Update-alternatives-install / usr / bin / java java / <directory_binario_scaricato> / jre1.6.0_31/bin/java 1000
To verify that the installation is successful, a terminal can request to know the version of Java being used by the command shown in the box and you should see a message like this:
java version "1.6.0_31"
Java (TM) SE Runtime Environment (build 1.6.0_31-b04)
Java HotSpot (TM) 64-Bit Server VM (build 20.6-b01, mixed mode)
If it appears the use of another version of Java, I recommend that you read this later.
At this point we are ready to instruct the browser to use the plugin for Iceweasel provided by the Java package produced by Oracle. Even in this case we use the update-alternatives command, but quest'ltro way:
# Update-alternatives-install / usr / lib / mozilla / plugins / mozilla-libjavaplugin.so javaplugin.so / <directory_binario_scaricato> / jre1.6.0_31/lib/amd64/libnpjp2.so 2000
Closing and reopening the browser, you can type in the address bar as follows:
Of course you'll see a series of plugins including also some called "Java (TM) Plug-in 1.6.0_31". At this point you can point your browser to one of the auditing services for the Java plugin in use (such as this ) and verify that indeed the version used is the correct one.
In case you had previously installed other versions of java, you can select which one to use by default between those installed by simply following the instructions that appear by typing the command:
# Update-alternatives-config java
Or, in case you have the same need with Iceweasel plugin, you can enter the command:
# Update-alternatives-config mozilla-javaplugin.so
Did you like this article? Subscribe to our newsletter to receive updates from the blog: