This is the mail archive of the kawa@sources.redhat.com mailing list for the Kawa 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: KAWA: Experimenting Kawa with Gcj is not working


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


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