Techie Weblog for Geeks
Welcome Cosmo Cyber Check out Weblinks Page for Great stuff

Monday, January 4, 2010

[T] Install Java in Ubuntu/ Kubuntu

Install Java in Ubuntu/ Kubuntu

Install a java environment that will allow you to run apps on your firefox/konqueror.

We will now install the following Java packages
sun-java6-bin - Contains the binaries
sun-java6-demo - Contains demos and examples
sun-java6-doc - Contains the documentation
sun-java6-fonts - Contains the Lucida TrueType fonts from the JRE
sun-java6-jdk - Contains the metapackage for the JDK
sun-java6-jre - Contains the metapackage for the JRE
sun-java6-plugin - Contains the plug-in for Mozilla-based browsers
sun-java6-source - Contains source files for the JDK


Installing the Java Runtime Environment

1. In terminal, enter the following command:

sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts

2. Once it downloads the packages and begins the installation, you’ll get a screen that contains the Sun Operating System Distributor License for Java and hit Enter to continue. You’ll see a dialog that asks you if you agree with the DLJ license terms. Select Yes, and hit Enter; the JRE will finish installing.


Aftermath:

First, check that the JRE is properly installed by running the following command from a terminal.
java -version
You should get similar output
java version “1.6.0″
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)

Making sure java works on Firefox:

Open Firefox and type

about:plugins

in the Konqueror top bar, go to

HTML Settings

& make sure the "Java" option is ticked.

Note: If it fails to work, You might need to make Sun Java the default by running the following command:

sudo update-alternatives --config java

and selecting Sun Java.


~

No comments:

Post a Comment