Installation of Sun JAVA 6 in Ubuntu 11.04

Hello,

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

http://www.ubuntugeek.com/install-jre-in-ubuntu-11-04-natty-using-ppa.html

Comments

  1. It shows the following error after sudo apt-get update command
    W:Failed to fetch http://archive.canonical.com/dists/lucid/Release Unable to find expected entry 'partnerexit/source/Sources' in Release file (Wrong sources.list entry or malformed file)
    W: Failed to fetch http://ppa.launchpad.net/sun-java-community-team/sun-java6/ubuntu/dists/natty/main/source/Sources 404 Not Found

    W: Failed to fetch http://ppa.launchpad.net/sun-java-community-team/sun-java6/ubuntu/dists/natty/main/binary-i386/Packages 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

    ReplyDelete

Post a Comment

Popular posts from this blog

Generating 16k ROM using Xilinx IP COREGEN and simulating it in modelsim

Setting up atalanta ATPG to work on Linux

Sparse matrix - 3 tuple representation