questions on gcj and javac compiled jar file

Tom Tromey tromey@redhat.com
Mon Aug 22 22:53:00 GMT 2005


>>>>> "Jianming" == Jianming Ye <jye@bbn.com> writes:

Jianming> 1) If I have a jar file compiled wirh javac (JDK1.4.2) ,
Jianming>    could I use it directly with gcj? Do I need to recompile
Jianming>    the jar file with gcj?

Provided it does not have any dependencies on core classes which gcj
does not provide (including sun.* and com.sun.* classes, which many
projects seem to use), it will work fine.

You can either use the jar directly with gij, or you can compile it
with gcj.  The manual ought to cover both of these cases.

Jianming> 2) Anyboy has experience using gcj with  JacORB?

I believe we've been using jacorb, compiled with gcj, as part of our
jonas build.  In fact I think it is in Fedora Core (rawhide maybe, I
forget).

Tom



More information about the Java mailing list