Manually install Sun Java Plugin + Iceweasel on Debian Wheezy
Those who, like me, are using Debian GNU / Linux as the operating system for your desktop, will certainly have noticed that a few months ago about this fantastic distribution has been deleted the package version of Java product from 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 instead you must use the IcedTea plugin. However, it may happen to have the need to use the right version of Java closed for Oracle 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 version closed Java. First you need to download the binary package of the ' latest version of Java from Oracle's website. The moment you write the original version 6 update 31 After you have downloaded the appropriate file using the browser, we proceed by opening a terminal and acquire root privileges; then we move to the directory where the binary file and you give the rights to read and execute simple even for users:
# Chmod 755 jre-6u31-linux-x64.bin
At this point we run the binary file downloaded; this is not the first to come back momentanemente 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 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".
Still in the terminal 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 was successful, terminal, you can request to know the version of Java used by the command shown in the box and you should see a message like this:
$ Java -version
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)
In case, there is the use of another version of Java, I recommend that you read this later.
At this point we are ready to instruct the browser Iceweasel for you to use the Java plug-in provided by the package produced by Oracle. Also in this case we will use the command update-alternatives, but in quest'ltro way:
# Update-alternatives -install /usr/lib/mozilla/plugins/libjavaplugin.so mozilla-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: