Re: GNU Java packages
- From: cold80 <cold80@xxxxxxxxx>
- Date: Thu, 26 Jul 2007 06:02:12 -0700
On Jul 26, 2:42 pm, Thomas Fritsch <i.dont.like.s...@xxxxxxxxxxx>
wrote:
cold80 schrieb:
On Jul 26, 1:31 pm, Thomas Fritsch <i.dont.like.s...@xxxxxxxxxxx>
wrote:
cold80 wrote:
I've just discovered the existence of the GCJ compiler and the GNU
Java libraries. I've configured my Eclipse to use it as default JVM
and compiler. Now I see that inside the file .jar there are different
packages than the Sun version. There're always the "standard" packages
(java, java.awt, etc) but there are also the "GNU version" (gnu.java,
gnu.awt and so on). Now, what's the difference? If I use the normal
package, am I sure that the application will work with Sun VM too?
Because if I use the gnu version the computer where I will install the
software must have the GCJ and the GNU libraries, right? Are the GNU
version of the libraries just an extension of the original ones or the
purpose is to rewrite a open version of the Java libraries?
It is meant as an open version of the Java libraries.
See <http://savannah.gnu.org/projects/classpath/> and
<http://www.gnu.org/software/classpath/>
OK, but which is "meant as an open version of the Java libraries"? The
traditional packages or the gnu.* packages or both? In this case, what
are the gnu.* packages? Just extensions of the other ones?
Hope my question is clearer now...
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.
--
Thomas- Hide quoted text -
- 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
.
- Follow-Ups:
- Re: GNU Java packages
- From: Oliver Wong
- Re: GNU Java packages
- From: Lew
- Re: GNU Java packages
- References:
- GNU Java packages
- From: cold80
- Re: GNU Java packages
- From: Thomas Fritsch
- Re: GNU Java packages
- From: cold80
- Re: GNU Java packages
- From: Thomas Fritsch
- GNU Java packages
- Prev by Date: Re: GNU Java packages
- Next by Date: How to get the actual type of T
- Previous by thread: Re: GNU Java packages
- Next by thread: Re: GNU Java packages
- Index(es):
Relevant Pages
|
|