basic question of GCJ
Steve Ni
list@boyi-online.com
Wed Mar 19 04:08:00 GMT 2003
Thank you very much!
About Sun JDK license.
I think you must know http://www.excelsior-usa.com/jet.html, which also is a
java native compiler. When install excelsior-jet, it compiles Sun Java
pacakge firstly, the compiled JDK version is depenedent on your point to,
for example, if you set java home path to c:\jdk1.4.0_1,円 then excelsior
will compile that rt.jar. So when you compile your own project, excelsior
will use the given JDK as your code basic.
----- Original Message -----
From: "Tom Tromey" <tromey@redhat.com>
To: "Steve Ni" <list@boyi-online.com>
Cc: <java@gcc.gnu.org>
Sent: Wednesday, March 19, 2003 11:09 AM
Subject: Re: basic question of GCJ
> >>>>> "Steve" == Steve Ni <list@boyi-online.com> writes:
>> Steve> It seems GCJ group rewrote all code in Sun JDK's java.* and
> Steve> javax.* class(generally, found in Sun's rt.jar). I really
> Steve> wonder if it's good way.
>> It's the only way, given our goals and Sun's licensing. Our goal is a
> complete free software Java environment. Sun's code isn't free
> software.
>> Steve> If GCJ rewrite all java.* or javax.* package, could you
> Steve> gurantee these package is stable like Sun's ? And Sun release
> Steve> some new java.* api in JDK1.4, for example: java.nio.*, how can
> Steve> I use those new API?
>> We have (admittedly incomplete) test suites and we try libgcj with
> real Java applications.
>> For new packages, well, usually someone comes along and writes them.
> For instance Michael Koch is writing java.nio.
>> Steve> Is it possible that I compile my code with java.* and javax.* in
Sun's
> Steve> rt.jar( certainly, except AWT&SWING) instead of GCJ's libgcj
provided?
>> Perhaps, though I'd imagine it will violate your license with Sun.
>> Steve> It also can be accecpted if I just compile my source code and
> Steve> leave jmf as class package. Is it possible compile my project
> Steve> by GCJ?
>> You can compile .class files to object, if that's what you're asking.
>> Steve> 3) When I release my project, are there some additional library
> Steve> requried?
>> Yes, libgcj.so on Unixy boxes; on Windows things are a bit different.
>> Steve> Furthermore, I just want to confirm my concept of GCJ: when
> Steve> running my compiled project, for example, input "myprj" to
> Steve> startup program, when mypri execute to some class file(As above
> Steve> mentioned, if I leave jmf as classes package. ), does it load
> Steve> those classes automatically? Is gij required?
>> I don't understand the question. In general you compile everything to
> native, just as you would do for a C program. You can use .class
> files at runtime if you prefer. The interpreter is built in to
> libgcj.so, so you don't need gij separately if you have a mix of
> compiled and interpreted code. That isn't the usual way to use it
> though.
>> Tom
>
More information about the Java
mailing list