Problem linking java program

Mark Wielaard
Thu Nov 10 13:26:00 GMT 2005

Hi Julian,

On Thu, 2005-11-10 at 14:19 +0100, Julien Claassen wrote:
> In Nov 10 A.D. 2005 Michael Koch scripsit:
> > use this:
> >
> > gcj --main=Test -o test
>   Will
> gcj --main=Test -c
>   Then generate code, that can be interpreted with gij?

No, not directly If you want to produce byte code then use the -C
option. See

You can get gij to use the generated precompiled object code if you turn
it into a shared library and register it with the system wide gcj/gij
class database.


Escape the Java Trap with GNU Classpath!

Join the community at
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <>

More information about the Gcc-help mailing list