Possible Duplicate:
How do I install Oracle JDK 6?

For Hadoop, I should install sun-java6-jdk and jre to my Ubuntu 12.04. But, I could not manage to install. How can I install it to Ubuntu 12.04 ?

Note : In http://snapshot.debian.org/binary/sun-java6-jdk/, there is deb file. But, I could not install sun-java6-jdk and jre via apt-get .

merged by Marco Ceppi Oct 10 '12 at 23:35

This question was merged with How do I install Oracle JDK 6? [duplicate] because it is an exact duplicate of that question.