Thursday, October 14, 2010

JDK and JRE on Ubuntu

Here is a step by step procedure to install JDK and JRE on ubuntu operating system. Note that there should be an internet connection for this method of installation.

  1. Open a terminal.
  2. Install JDK and JRE using the following command.
  3. apt-get install sun-java6-jdk sun-java6-jre
  4. During the installation process it will ask whether to proceed or not. Give y or n (y and n for yes and no respectively).
  5. Go through the wizard like interface and complete the installation.
  6. On the command line type following and confirm JDK is working. This Should return the java version which has been installed for a successful installation.
  7. java -version

No comments :

Post a Comment