Re: Why do more and more Linux distries default OpenJDK?
Christian wrote:
anyone got an idea why more and more Linux distries default to OpenJDK?
1. OpenJDK is the fully open-source (except for the binary blobs, which
I think are diminishing) version of Java.
2. OpenJDK is the future of Java. JDK 7 will be based off of the OpenJDK
7 tree.
It seems to be problematic as this OpenJDK does not implement the full
java API .. lots of methods and fields (I think I have seen a statistic
that showed it was more than 2%) are missing. (i.e. Pattern.quote() and
many more)
I have OpenJDK 6 installed and it clearly has Pattern.quote:
jcranmer@quetzalcoatl ~ $ javap java.util.regex.Pattern
Compiled from "Pattern.java"
public final class java.util.regex.Pattern extends java.lang.Object
implements java.io.Serializable{
< snipping lines >
public static java.lang.String quote(java.lang.String);
static boolean access$200(int, int, int);
static int access$300(java.lang.CharSequence, int, int);
static boolean access$400(java.util.regex.Matcher, int,
java.lang.CharSequence);
static java.util.regex.Pattern$CharProperty access$600(int, int);
static {};
}
It might be missing sun.* or com.sun.* packages, but if you're relying
on those, you're having portability problems anyways.
I though normal sun jre would be compatible with linux licence?
The licensing issues of Sun's old JRE's did not classify as free per
many standards; many Linux distributions tend to be rather evangelical
in their quest for freedom (the best example is the Debian/Mozilla dispute).
--
Beware of bugs in the above code; I have only proved it correct, not
tried it. -- Donald E. Knuth