Ask a question »

Installing Java under Ubuntu

May 2016

This article discusses installing Java under Ubuntu Firefox. Given that Firefox does not come with Java, here is a solution to this issue. By default, Firefox does not accompany Java, i.e., it does not come with the software. This means that the user will not be able to run any Java applications on a Firefox platform. This means you have to manually install Java. This article shows how you can achieve this. After installing Java, all programs or applets can be run on it.


By default, Firefox does not come with Java.


  • Open a terminal (Application Menu/ Accessories/ Terminal) and type in:
    • sudo aptitude install sun-java6-jre sun-java6-plugin 
  • or
    • sudo aptitude install sun-java5-jre sun-java5-plugin 
  • Enter your password if prompted.
  • A license window will appear: Press TAB and then ENTER.
  • If a question is asked, answer "yes" (using the arrow keys and the ENTER key).

You should now be able to run Java program and see Java applets in the Firefox browser.

For unlimited offline reading, you can download this article for free in PDF format:

See also

In the same category

Instalar Java en Ubuntu
By Carlos-vialfa on May 31, 2013
Java unter Ubuntu Installieren
By jedtheboss on December 23, 2009
Installer Java sous Ubuntu
By sebsauvage on March 13, 2007
Come installare Java su Ubuntu
By zig@ on January 26, 2010
Instalar Java no Ubuntu
By ninha25 on August 5, 2009
Original article published by sebsauvage. Translated by netty5. - Latest update by Jeff
This document entitled « Installing Java under Ubuntu » from CCM ( is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the license, as this note appears clearly.