Wednesday, November 9, 2011

Installation of Sun JAVA 6 in Ubuntu 11.04


There are a number of websites that explain how to install Java 6 on your Ubuntu machine. Here I have recorded the installation of JAVA in a brand new Ubuntu 11.04 machine.

You need to install JDK and JRE to get Java up and running in your system.

Installing JAVA 6 in ubuntu 11.04 Natty

1. Installing JRE - Java Runtime Environment
sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts

2. Installing JDK
sudo apt-get install sun-java6-jdk

Testing if installation is fine
1. open terminal
2. type "javac -version"
it displays the version of java compiler if installation is fine

1 comment:

  1. It shows the following error after sudo apt-get update command
    W:Failed to fetch Unable to find expected entry 'partnerexit/source/Sources' in Release file (Wrong sources.list entry or malformed file)
    W: Failed to fetch 404 Not Found

    W: Failed to fetch 404 Not Found

    E: Some index files failed to download. They have been ignored, or old ones used instead.

    what should I do to fix such problem