From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 120309 invoked by alias); 7 Jun 2017 06:27:19 -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 120203 invoked by uid 89); 7 Jun 2017 06:27:18 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.3 required=5.0 tests=AWL,BAYES_00,FORGED_HOTMAIL_RCVD2,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=no version=3.3.2 spammy=world, H*Ad:U*kawa, dumb, H*M:apcprd04 X-HELO: APC01-SG2-obe.outbound.protection.outlook.com Received: from mail-oln040092253019.outbound.protection.outlook.com (HELO APC01-SG2-obe.outbound.protection.outlook.com) (40.92.253.19) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 07 Jun 2017 06:27:16 +0000 Received: from SG2APC01FT037.eop-APC01.prod.protection.outlook.com (10.152.250.60) by SG2APC01HT128.eop-APC01.prod.protection.outlook.com (10.152.251.230) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1101.12; Wed, 7 Jun 2017 06:27:17 +0000 Received: from SG2PR0401MB1982.apcprd04.prod.outlook.com (10.152.250.54) by SG2APC01FT037.mail.protection.outlook.com (10.152.251.111) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1143.11 via Frontend Transport; Wed, 7 Jun 2017 06:27:17 +0000 Received: from SG2PR0401MB1982.apcprd04.prod.outlook.com ([fe80::9dd9:961e:d478:258]) by SG2PR0401MB1982.apcprd04.prod.outlook.com ([fe80::9dd9:961e:d478:258%17]) with mapi id 15.01.1143.019; Wed, 7 Jun 2017 06:27:17 +0000 From: Tony West To: "kawa@sourceware.org" Subject: Problem running Javafx hello world application Date: Wed, 07 Jun 2017 06:27:00 -0000 Message-ID: authentication-results: sourceware.org; dkim=none (message not signed) header.d=none;sourceware.org; dmarc=none action=none header.from=hotmail.com; x-incomingtopheadermarker: OriginalChecksum:3686994C3F97DB418DD7C7023984D30FAA523BD2BF6A36363D7F4C87B91F6BC4;UpperCasedChecksum:0792E928E7F9437DE395FC7ABE5DEAA8F379FB3333559C3A3DCC1F38F7CE1C94;SizeAsReceived:8122;Count:43 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [BpGthH/+dmEDBQrAwYRcpqHElYpms8Xavv+5KZzwxfg=] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;SG2APC01HT128;24:D9IaEZbOxwP6jmizFJgVA5jkNnhnYbasOSZFlnH7pl8q1fSKOFDshL+K2JAlePXTsygWqS6C4Iq8kBBNyR8VXfoKeMdmags2TTwpt5BpK60=;7:jSUBrMC4/zzxmeqru1tG9ldd9ql5ING1jCEb99F4JIqmBP6i2PpqM0C+m0TnYjrxWlzPauF/7XGe8qJn1CtY3oJQ2i+0oSIzNUv4/tEtjBsnN2boRlfA2Q4mP4LLVRSXJjvYI4N9YW3afwc2lWT5h582aCFvbd6HWaYOsiTmfa5cIS2kEQC+sb3Q7pV6myY+Lf6O+9G+/PnT4v1LpzvmhO0pq+LWTXYtKiDG/gsWyYt1JOjgIJ5qFCTOkIlISWb0d8qkOCGml0dqbFrybVlyNuQ+6tqo5cYj09aaNpQyC2Dp4Heb2rL9uhEjlC4RuJMW x-incomingheadercount: 43 x-eopattributedmessage: 0 x-forefront-antispam-report: EFV:NLI;SFV:NSPM;SFS:(7070007)(98901004);DIR:OUT;SFP:1901;SCL:1;SRVR:SG2APC01HT128;H:SG2PR0401MB1982.apcprd04.prod.outlook.com;FPR:;SPF:None;LANG:en; x-ms-traffictypediagnostic: SG2APC01HT128: x-ms-office365-filtering-correlation-id: 3b59a5bf-fb0d-444a-87d5-08d4ad6e3e73 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201702061074)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031324274)(2017031323274)(2017031322274)(1601125374)(1603101448)(1701031045);SRVR:SG2APC01HT128; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(444000031);SRVR:SG2APC01HT128;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:SG2APC01HT128; x-forefront-prvs: 03319F6FEF spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Jun 2017 06:27:17.0130 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2APC01HT128 X-IsSubscribed: yes X-SW-Source: 2017-q2/txt/msg00091.txt.bz2 Hi, Based on what I've seen in the mailing list, I've got the following simple = Javafx application: (module-name ) (module-extends ) (module-export start create-button) (module-compile-options main: #t) ;; ;;; Application ;; (define (start (primary-stage :: )) :: (invoke primary-stage 'setTitle "Hello World!") (let ((root-pane ()) (button (create-button text: "Say 'Hello World'" event-handler: (lambda (event) (format #t "Hello World!"))= ))) (invoke (invoke root-pane 'getChildren) 'add button) (invoke primary-stage 'setScene ( root-pane 300 250= )) (invoke primary-stage 'show))) ;; ;;; Utilities ;; (define (create-button #!key (text #f) (event-handler #f)) :: =20 (let ((button :: ())) (when text (invoke button 'setText text)) (when event-handler (invoke button 'setOnAction (object () ((handle (event :: )) (event-handler event))))) button)) ;; ;;; Main ;; (define (main) (invoke-static 'launch)) (main) When compiling I get the following: E:\Work\kawa>kawa --main -C hello-world.scm Jun 07, 2017 4:16:42 PM org.jline.utils.Log logr WARNING: Unable to create a system terminal, creating a dumb terminal (enab= le debug logging for more information) (compiling hello-world.scm to org.kawa.javafx) And when I run it I get the following: E:\Work\kawa>java org.kawa.javafx java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.sun.javafx.application.LauncherImpl.launchApplicationWithArg= s(LauncherImpl.java:389) at com.sun.javafx.application.LauncherImpl.launchApplication(Launch= erImpl.java:328) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at sun.launcher.LauncherHelper$FXHelper.main(Unknown Source) Caused by: java.lang.IncompatibleClassChangeError: Expected static field or= g.kawa.javafx$frame.$main at org.kawa.javafx.main(hello-world.scm) ... 11 more Exception running application org.kawa.javafx I would be really grateful if someone could point out what I am doing wrong. Thanks. Tony