Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
How do I install Java?

I was surfing this site and it said I need Java installed. When I searched a bit, I found three Java type(?). Open jdk, sun Java and Oracle. I want to know the difference among them. I need Java for surfing the Internet only, the type of sites that require Java. I tried to install Sun Java but couldn't. Which Should I install & how? If it's Sun Java could you please suggest another method to install? I'm running Ubuntu 12.04 64-bit.

share|improve this question

marked as duplicate by Jorge Castro, Mik, Mitch, maythux, devav2 Oct 11 '12 at 5:56

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Install the icedtea plugin.

sudo apt-get install icedtea-7-plugin

Differences? Not enough to worry about.

share|improve this answer

The easiest method to install Oracle Java 7 via PPA:

  1. sudo add-apt-repository ppa:webupd8team/java
  2. sudo apt-get update
  3. sudo apt-get install oracle-java7-installer

See also:

How do I install Java?

How do I install Oracle Java JDK 7?

How do I install Oracle JDK 6?

share|improve this answer
can I install open jdk 6 along with Oracle Java 7? – BRKsays May 8 '12 at 5:03

Not the answer you're looking for? Browse other questions tagged or ask your own question.