Tuesday, December 6, 2011

Java: How To Installing Java under Ubuntu


This article deals with the issue of installing Java under Ubuntu Firefox. Given that Firefox does not come with Java, here is a solution to it. 
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. So you have to manually install Java on it. This article provides a guide on how you can achieve this. After installing Java, all programs or applets can be run on it. 

Issue

By default, Firefox does not come with Java. 

Solution

  • 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).

Note that

You should now be able to run Java programs and see Java applets in the Firefox browser. Retweet this story