Wednesday, July 27, 2011

How to install Java 6 and Java Runtime Environment in Ubuntu....???

  Java is one of the most popular languages of today.
  Java has now a vast,well-established and ever-
  expanding user group.The growth of Java has been
  phenomenal and the speed of Java has increased
  since its first release.Java is nowadays a preferred
  language in Internet programming,cross-platform
  applications and many areas.
  Java is WORA (Write Once Run Anywhere) 
  language which makes it an instant choice for 
  building applications which need to be portable.

Java also supports object-oriented programming.There are many editions of Java available
J2SE(Java 2 Standard Edition),J2EE(Java 2 Enterprise Edition) and J2ME(Java 2
 Micro Edition).

To develop general portable Java applications you need J2SE.

To develop apps that run on application servers or simply server programming you need J2EE.

To develop apps for embedded systems(mobile phones,set-top boxes etc.) you need J2ME.

For normal use you'll only need J2SE.
Installing Java(J2SE) in Linux/Ubuntu is very easy.....

You can install Java in Ubuntu in three ways-
The installation will download about 57MB so if you are on a low speed connection have patience.

1.Using thse ubuntu software center - Just search for jdk and install the files
            1.Sun Java(TM) Development Kit (JDK) 6 (6 deenotes version)
            2.Sun Java(TM) Runtime Environment (JRE) 6(architecture dependent files) 
           3.Sun Java(TM) Runtime Environment (JRE) 6(architecture independent files)
           and you are done...check your installation by opening the terminal
           (Applications->Accessories->Terminal) and writing command java -version.
           If it installed correctly,you'll see your Java and JRE version.

2.Using Synaptic Package Manager- Search for jdk and and Mark sun-java6-jdk for 
                                                         installation and click apply.It'll take care of
                                                         everything for you.Once it installs check if it
                                                         installed correctly by typing the command
                                                         java -version.If it installed correctly,you'll see your
                                                         Java and JRE version.

3.Using the terminal/command line-To install the JDK 6(replace the version no. with 6)
   using the terminal.Type the following commands:
   sudo apt-get update
   sudo apt-get install sun-jdk-java6 sun-java6-jre sun-java6-plugin sun-java6-
   Enter your sudo password and the installation will start.Once it installs check if it
   installed correctly by typing the command java -version.If it installed correctly,you'll
   see your Java and JRE version.

   If you liked the like/comment/share it with your friends.......


Related Posts Plugin for WordPress, Blogger...