From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 101104 invoked by alias); 1 Apr 2017 19:59:02 -0000 Mailing-List: contact kawa-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: kawa-owner@sourceware.org Received: (qmail 100139 invoked by uid 89); 1 Apr 2017 19:59:01 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=Method X-HELO: mail-ua0-f169.google.com Received: from mail-ua0-f169.google.com (HELO mail-ua0-f169.google.com) (209.85.217.169) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 01 Apr 2017 19:59:00 +0000 Received: by mail-ua0-f169.google.com with SMTP id d64so10987336uad.2 for ; Sat, 01 Apr 2017 12:59:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=oqYdCImz5//RpP7UT4mGBdsMMRWDCmAnt+kjbjykHjM=; b=GbVXmjycxr9jNxtz6u3mqUnU0lcpukbtYoLhF8NHhRg0Knx4oOhJIO1Va6rgT3wpaZ qqY43bYjputaa/eTYYSjTfDXBSYQXxH/PPFTadjZrC/JrLQdLVJjuYV6+Ns0ZFuOr3CG EZ/NLiD9dWjFg6bgkL+Vttu4rUvrj5E6szW/XT1RqE8+ceOJWIKd87feLrmCRQzluosy nKmBfZadkmlmxYMc3VFuci6ZJjxZmDri0wsdegbTmT2aJ95qGeXr6a4fg/A9wr+6UEHs Cv512a5VZhAmgEbLgvdBaIn2BE+en7KYXvP37trVDlcs07JW8IGMCLBW8qglJgZ8N0S9 GESA== X-Gm-Message-State: AFeK/H2bgOQWwRZHd1rPaUFVE2u18f6bw7KvwEYQHiqs9i+UAp01E04Ix70jCzpm0RHNJCPgTTLKg5b5KHORFA== X-Received: by 10.159.54.162 with SMTP id p31mr4983263uap.67.1491076740156; Sat, 01 Apr 2017 12:59:00 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.81.136 with HTTP; Sat, 1 Apr 2017 12:58:59 -0700 (PDT) In-Reply-To: <90df5850-958b-db89-f6e4-93a12d6e5cf3@bothner.com> References: <58919df1-afe7-ae3b-0fdc-bb428c8ba3ed@bothner.com> <90df5850-958b-db89-f6e4-93a12d6e5cf3@bothner.com> From: Vasantha Ganesh Date: Sat, 01 Apr 2017 19:59:00 -0000 Message-ID: Subject: Re: Help, writing kawa equivalent of java program To: Per Bothner Cc: kawa@sourceware.org Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2017-q2/txt/msg00010.txt.bz2 Hello Mr. Bothner, I still get this error: [homonculus@alchemist kawa-scheme]$ kawa -J-cp -J/usr/share/java/jna.jar:.:/usr/share/java/kawa-2.0.jar -f jnagetpid.scm Exception in thread "main" java.lang.ClassFormatError: Illegal field modifiers in class libc: 0x1 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:763) at java.lang.ClassLoader.defineClass(ClassLoader.java:642) at gnu.bytecode.ArrayClassLoader.loadClass(ArrayClassLoader.java:125) at gnu.expr.ModuleExp.evalToClass(ModuleExp.java:135) at gnu.expr.ModuleExp.evalModule1(ModuleExp.java:259) at gnu.expr.ModuleExp.evalModule(ModuleExp.java:214) at kawa.Shell.run(Shell.java:291) at kawa.Shell.runFile(Shell.java:524) at kawa.Shell.runFileOrClass(Shell.java:447) at kawa.repl.processArgs(repl.java:260) at kawa.repl.main(repl.java:871) Thank you, Vasantha Ganesh K. On Sun, Apr 2, 2017 at 1:22 AM, Per Bothner wrote: > On 04/01/2017 12:44 PM, Vasantha Ganesh wrote: >> >> Thank you, that did work. Kawa complains that the interface that I >> created in kawa is not an interface. > > > (define-simple-class libc (library) > (make-interface #t) > (getpid::long)) > > - defines a field named make-interface. > You probably want: > > (define-simple-class libc (library) > interface: #t > (getpid::long)) > > -- > --Per Bothner > per@bothner.com http://per.bothner.com/