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

I'm new to Java development under Ubuntu. When I typed javac in the terminal, it prompted me to install OpenJDK and a bunch of other JDKs. I want to know if there is any difference between OpenJDK 7 and Oracle's JDK 7. Are they basically the same? Thanks.

share|improve this question
up vote 7 down vote accepted

OpenJDK is the default version of Java that Ubuntu uses and is the easiest to install while Oracle Java 7 is Oracle's own version of Java 7.

You can read Ubuntu Java Documentation.

OpenJDK: "Oracle makes the OpenJDK source code available under an open-source licensing model. It's both gratis, and free (as in freedom) software."

Further as I found in Oracle Java FAQ Section

For Oracle JDK

"The Java Development Kit (JDK) is free to download and use for commercial programming, but not to re-distribute."

share|improve this answer
I will use Oracle JDK. Because OpenJDK i have been using several years now, and every day i had nightmares. Since i moved to Oracle JDK all my application problems where solved. That means OpenJDK is bug, to play, to fun, but for Enterprise deploy i will need to always choose Oracle JDK. – YumYumYum Jun 28 '13 at 7:45

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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