This is the mail archive of the
kawa@sources.redhat.com
mailing list for the Kawa project.
Re: KAWA: Experimenting Kawa with Gcj is not working
- From: Erol Akarsu <eakarsu at cmguc dot com>
- To: Chris Dean <ctdean at mercedsystems dot com>
- Cc: kawa at sources dot redhat dot com
- Date: Thu, 19 Dec 2002 22:05:42 -0500
- Subject: Re: KAWA: Experimenting Kawa with Gcj is not working
- References: <3E027A8F.3911D204@cmguc.com> <31758.1040350492@mercedsystems.com>
Hi Cris,
Thanks Chris. I appreciate your immediate help.
Your suggestion worked. Next thing, I will run some benchmarks on Kawa and
compare it with Bigloo Scheme compiler. I expect performance of Kawa with Gcj
would be fairly close to Bigloo.
Thanks
Erol Akarsu
Chris Dean wrote:
> I don't think the function named "main" is special to Kawa. Try this:
>
> (define (main . args)
> (display "Hello World\n"))
>
> (main)
>
> or even:
>
> (display "Hello World\n")
>
> Regards,
> Chris Dean
>
> Erol Akarsu <eakarsu@cmguc.com> wrote:
> > Hello,
> >
> > I have started an experimenting of Kawa with Gcj.
> > I have simple HelloWorld scheme file
> >
> > (define (main . args)
> > (display "Hello World"))
> >
> > and and convert it to .class file with this command
> >
> > kawa --main -C hello.scm
> >
> > Here when I try to run this java class file with gij or Kaffe java on
> > Linux,
> >
> > gij hello
> > java hello
> >
> > I am not getting any output ("Hello World"). But I am getting output
> > when I load hello.class and invoke main method in Kawa interpreter
> > mode.
> >
> > I continue to experiment by generating executable from java.class with
> > gckawa
> >
> > gckawa --main=hello hello.class -o hello
> >
> > and run the application (hello)
> >
> > hello
> >
> > again I am got getting any output. I am using gjc 3.2.1 and latest Kawa
> > on Redhat Linux 7.3. Is there anything I am doing wrong and missing
> > something?
> >
> > Best Regards
> >
> > Erol Akarsu