That test.main method is not static, does not have return type void, and does not take an argument of type String[]. Try something like ((main args::String[])::void allocation: ‘static (display “hello”) (newline)) Or just put statements at the top level and not inside a define-simple-class, and let the module itself be the main. The simplest hello world is a file with nothing but (display “hello”), run with kawa -f test.scm (or maybe just kawa test.scm without the -f, I don’t have my computer handy right now). On Sat, Sep 30, 2023 at 10:06 AM Damien Mattei via Kawa wrote: > what is th problem with this: > ;; test.scm > (module-name demo) > (module-compile-options main: #t) > > (define-simple-class test () > > ;; Need a default constructor as well. > ((*init*) #!void) > > ((main (args :: java.lang.Object)) > (display "hello") (newline) > "hello")) > > bash-3.2$ kawa --main -C test.scm > (compiling test.scm to demo) > bash-3.2$ java -cp . test > Error: Main method not found in class test, please define the main method > as: > public static void main(String[] args) > or a JavaFX application class must extend javafx.application.Application > > On Sat, Sep 30, 2023 at 3:25 PM Damien Mattei > wrote: > > > > hello, > > many years i used kawa for web application (.war) > > now i want to do a simple standalone program but i can not find that > > in my archive, i knew how to do it but just forget and i can not find > > a tutorial (needed?) on kawa site. > > > > how is it done? from scratch. > > regards, > > Damien >