Open the terminal, execute the following commands, or use the Adept/synaptic software Manager to search for "Sun-java6-jre" and "SUN-JAVA6-JDK" separately and mark the installation.sudo apt-get install sun-java6-jre
If space is rich, it is recommended that you install a JDK. Oh
sudo apt-get install sun-java6-jdk
Tip: The installation process requires you to answer whether to agree to use the Protocol (the terminal in the red-Blue prompt interface), at this point to press the TAB key to OK, and then press Return to normal installation settings The current default Java interpreter:
sudo update-alternatives --config java
After execution, a screen similar to the following appears:
There are 4 alternatives which provide `java'.
Selection Alternative
-----------------------------------------------
*+ 1 /usr/lib/jvm/java-gcj/jre/bin/java
2 /usr/bin/gij-wrapper-4.1<br
3 /usr/bin/gij-wrapper-4.0<br
4 /usr/lib/jvm/java-1.6.0-sun/jre/bin/java
Press enter to keep the default, or type selection number:
Enter the number preceding the line that contains the "sun". As shown above, enter 4, then return to determine. Install the browser's Java Plugin (optional):
sudo apt-get install sun-java6-plugin