Unlike many popular programming languages, the popular Oracle Java package is only available using a PPA, not by the official repo.

Why isn't Oracle Java included in the standard Ubuntu repo?


Ubuntu has OpenJDK in its repository. It's the fully open-sourced version of the Oracle JDK, which contains some closed-source parts.

It is a myth that OpenJDK is lower and less stable, but this was the past.
Today (since version 7), they're pretty equal. OpenJDK is even the reference implementation for Java 7 and Java 8. It's a race between those two implementations, as some new features appear first in OpenJDK and then later get included to OracleJDK, while some features get included the other way round.

The major differences are that OpenJDK has no Webstart included (but the open-source IcedTea does this job) and some other closed-source tools of Oracle missing, but nothing important.

So to sum up: As Ubuntu supports everything that is open-source, it supports OpenJDK, especially as it has no real disadvantages any more.

|improve this answer|||||
  • 1
    no offense meant here. You were making a strong argument in favor of openJDK, and it would make sense to support that argument with a canonical reference. – Adam Matan Jul 7 '15 at 10:27
  • 1
    No problem, I did not feel offended. I just wasn't 100% sure I correctly understood you. :) – Byte Commander Jul 7 '15 at 10:29
  • 1
    programmers.stackexchange.com/q/171129 but OracleJDK is not fully closed-source, I think, because the code of OracleJDK and OpenJDK are nearly equal. It's just small closed-source parts (e.g. some code for graphics) and additional tools. And if you feel you can improve any post somehow, just do the edit. If I don't like it, I can roll it back anyway. No need to ask. – Byte Commander Jul 7 '15 at 11:28
  • 2
    The problem is that many web applications require Oracle Java. OpenJDK just does not work. – Pilot6 Jul 7 '15 at 12:05
  • 4
    The original question was "Why isn't Oracle Java included in the standard Ubuntu repo" and not "What can I use as a substitute in Ubuntu instead of OracleJDK". And I think the answer should be explaining some legal reasons. – karatedog Jul 7 '15 at 12:21

I think it's caused by licence:

  • OpenJDK is licensed under the GNU General Public License (GNU GPL)
  • Oracle JDK is licensed under 'Sun License'

To be honest, I would prefer to have Oracle Java in Ubuntu/Ubuntu-based since (unfortunately) some applications still demand it.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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