This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem linking java program


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 Test.java -o test
>   Will
> gcj --main=Test -c Test.java
>   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 http://gcc.gnu.org/onlinedocs/gcj/Code-Generation.html

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.
See http://gcc.gnu.org/onlinedocs/gcj/Invoking-gcj_002ddbtool.html

Cheers,

Mark
-- 
Escape the Java Trap with GNU Classpath!
http://www.gnu.org/philosophy/java-trap.html

Join the community at http://planet.classpath.org/

Attachment: signature.asc
Description: This is a digitally signed message part


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]