This question already has an answer here:

If I downloaded the latest JDK from Oracle, do I just download the .tar file and extract it to /usr/lib/jvm/?

merged by jrg Oct 10 '13 at 20:01

This question was merged with How can I install Sun/Oracle's proprietary Java JDK 6/7/8 or JRE? because it is an exact duplicate of that question.

Browse other questions tagged or ask your own question.