Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

From http://www.wikihow.com/Install-Oracle-Java-on-Ubuntu-Linux

Type/Copy/Paste: java -version . If you're having

OpenJDK Runtime Environment (IcedTea6 1.10pre) (7b15~pre1-0lucid1)
OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)

... you have the wrong vendor version of Java installed for this exercise.

This is what I have. I wonder, why is this a wrong vendor? What is this vendor? Why should I use Oracle Java instead?

share|improve this question

closed as off-topic by Florian Diesch, chaskes, BuZZ-dEE, Braiam, Richard Mar 23 at 2:09

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – Florian Diesch, chaskes, BuZZ-dEE
If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer 1

up vote 17 down vote accepted

There are currently two Java versions (vendors, if you will) available:

  • Oracle's (previously Sun) JDK, the closed source Java, with commercial support from Oracle 'n stuffs.
  • OpenJDK, the open source Java. Oracle released part of their source and renamed it.

In the days of Java 6, there used to be a big difference between the two of them, OpenJDK running slower and supporting less. However, nowadays, except for the java-web-plugin (which was rewritten by the community and named icedtea-web), they are exactly the same. Neither of the two versions is "wrong".

There are still people claiming OpenJDK is worse than Oracle's JDK, but it's become a myth.

I recommend keeping OpenJDK for Java 7, because open source FTW, and because it's supported in the official repositories of Ubuntu (Oracle does not let others redistribute their JDK).

share|improve this answer
    
for example, $ javac -version The program 'javac' can be found in the following packages: - should it be so with OpenJDK? –  Alex Mar 22 at 15:00
1  
OpenJDK is also the reference implementation of Java SE 7, so I think that's a testament to its stability (if I'm understanding correctly what it means to be a reference implementation). –  DaimyoKirby Mar 22 at 17:35
    
@Alex Java (OpenJDK and Oracle) is split in two packages: The Java Runtime Environment (JRE), and the Java Development Kit (JDK). If you just want to run some java programs, the JRE is all you need. If you want to compile some java programs (javac, which stands for java compiler), you'll need the JDK. Install the JDK with sudo apt-get install openjdk-7-jdk. –  mid_kid Mar 22 at 19:16
    
I've stopped using OpenJDK when at version 6, because at that time, it was clearly slower than Oracle JDK 1.6. Thus, I have no hands on proof that Open JDK 1.7 is still as slow as compared to Oracle JDK 1.7. I've found however some benchamrks made by other ppl, claiming that there still is a performance difference (in favour of Oracle JDK): ilsistemista.net/index.php/linux-a-unix/… I'd like to know if there's also proof stating the contrary (as I do prefer OpenJDK's... openness :) ) –  Shivan Dragon Mar 22 at 22:17
    
Back when jdk6, the winner was hands-down oracle. Now, I tried running minecraft and intellij with both, and there is no noticeable difference. The only "proof" you can have is trying it yourself, the fact that openjdk is the reference implementation, and this blog post: weblogs.java.net/blog/robogeek/archive/2009/01/05/… –  mid_kid Mar 23 at 0:24

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