Aah, I see clear now.
The whole GNU thing (i.e. its packages java.* and gnu.*) is meant to
replace the whole Sun thing (i.e. their packages java.* and sun.*).
When you compare the source code of GNU's and Sun's java.* packages,
you'll see they are different. Actually the GNU people reinvented the
java.* packages from scratch, without even looking into Sun's source
code, only with looking into their API docs.
The Java developer (i.e. you) will only use the java.* packages, but not
the gnu.* or sun.* packages.
On Jul 26, 2:42 pm, Thomas Fritsch <i.dont.like.s...@invalid.com>
wrote:
> cold80 schrieb:
>
[quoted text clipped - 40 lines]
>
> - Show quoted text -
Ah, OK, now I understand...the gnu.* package contains the stuff that
was "Sun specific" in the Sun implementation. But, even if the source
code is different in GNU version of the java.* packages, the signature
of the methods and the object are supposed to be the same, right? I
read that the GNU version is not as complete as the Sun version, but
do you think for a new project is better to use one or the other? And
why, as I heard that Sun realesed the JDK under the GNU license, is
preferable to use the GNU version all the same?
Thank you very much for your help
Cold
Lew - 26 Jul 2007 14:50 GMT
> Ah, OK, now I understand...the gnu.* package contains the stuff that
> was "Sun specific" in the Sun implementation. But, even if the source
[quoted text clipped - 4 lines]
> why, as I heard that Sun realesed the JDK under the GNU license, is
> preferable to use the GNU version all the same?
Personally I never preferred the Gnu version. The Sun version is free, now
open source at least in part, very efficient and, of course, guaranteed
compliant. Gnu's version never worked for me. Also, AIUI, the Gnu version
lacks features of Sun's. Furthermore, isn't Gnu still back at the nearly
obsolete 1.4 level? I'm pretty darn sure they aren't current with 6, at least.
Another really good JVM is IBM's. Their version 6 is in beta now.

Signature
Lew
Mike Schilling - 03 Aug 2007 20:51 GMT
> Personally I never preferred the Gnu version. The Sun version is free,
> now open source at least in part, very efficient and, of course,
[quoted text clipped - 4 lines]
>
> Another really good JVM is IBM's. Their version 6 is in beta now.
IBM's is also guaranteed compliant, since they passed the compatibility
tests. Fortunately, none of the non-compliant "Java"s have made much
headway in the business community. I dread having to create N different
versions of my company's software, the way we had to back in the Unix/C
days. And in Java, we don't even have #ifdef to help us with doing that
(if you call that help).
Oliver Wong - 27 Jul 2007 16:06 GMT
> I
> read that the GNU version is not as complete as the Sun version, but
[quoted text clipped - 3 lines]
>
> Thank you very much for your help
If you care a lot about the open-source-vs-close-source debate, then
you probably have your own opinions about whether Sun or GNU's library is
better, so you should just pick the one that you think is better.
If you don't really care, then take Sun's. More people have Sun's than
GNU's, so you'll have greater compatibility that way.
- Oliver
Arne Vajhøj - 28 Jul 2007 01:03 GMT
>> I
>> read that the GNU version is not as complete as the Sun version, but
[quoted text clipped - 7 lines]
> you probably have your own opinions about whether Sun or GNU's library is
> better, so you should just pick the one that you think is better.
The SUN library are also open source today.
Even the same license: GPL with classpath exception.
Arne