Manually install Sun Java Plugin + Iceweasel on Debian Wheezy
Who, like me, are using Debian GNU / Linux as the operating system for your desktop, will certainly have noticed that a few months on this fantastic distribution has been eliminated the package version of Java product from SUN (now Oracle) and in its place is 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 must use the IcedTea plugin. However, it may happen to have the need to use their own 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 debian painlessly closed version of Java. First you need to download the binary package of the ' latest version of Java from the Oracle website. In the moment in which there is available the write version 6 update 31. After downloading the appropriate files via browser, we proceed by opening a terminal and acquire root privileges, then we move to the directory where the binary file and give you 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, it does not return before momentanemente user without root privileges:
$ Sh jre-6u31-linux-x64.bin
As you will note, the execution of the binary file will only create a new subdirectory in 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".
Also 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 Iceweasel browser for you to use the plugin provided by the Java package produced by Oracle. Even in this case we will use the command update-alternatives, but in 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 the event that 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 our newsletter to get updates from this blog: