Installing Java under Ubuntu

August 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.

See also :

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.