From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7284 invoked by alias); 18 Jan 2017 17:02:07 -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 7265 invoked by uid 89); 18 Jan 2017 17:02:07 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KAM_BADIPHTTP,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS,WEIRD_PORT autolearn=no version=3.3.2 spammy=swing, Getting, Swing, 820 X-HELO: mail-qt0-f171.google.com Received: from mail-qt0-f171.google.com (HELO mail-qt0-f171.google.com) (209.85.216.171) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 18 Jan 2017 17:01:57 +0000 Received: by mail-qt0-f171.google.com with SMTP id x49so18407413qtc.2 for ; Wed, 18 Jan 2017 09:01:56 -0800 (PST) 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=hK3LRFACUiGfiA34dXbXLA8PpgvgaeoWuUvJZJUKZ7o=; b=TAb0u7h0MMyXW2GKdnDtVDwNTCwcIjMEqwXVdwLK+lWnDYO7nabmvF7GVCBKVw348o poBPvqHjnYPVEZJgg5I8eNcCHLndyEIzhc1XldX8a9w1URWiJpC+Lp2def5NuH1Npzp8 Bax/aplZGAcYWRftj7fgtu+9N1E6OS6u1diX394N1tnWKZxfonIz/8800DqYSNR4cX11 O5/7i4O6BQE0X5+EkdCUWppKmhpNNpTOk6Mvdq2WLcsauShQ8t2QdRxJGTlGDIYtESw4 Mzl97qpSb2sbEAsXpw+C39nBRTlkdUZX5if4X+EWft1mJVGyoW3OYN7RurTOQkEdzO0H UTpw== X-Gm-Message-State: AIkVDXKblMdDOF5hHYKWw0U2wILcJF7htlQiV3Rai7/WU2BJ6Zm2pr1mI9Exa1p/qBBujyQEuMd+kNMGVslWKw== X-Received: by 10.55.207.67 with SMTP id e64mr3711718qkj.272.1484758914943; Wed, 18 Jan 2017 09:01:54 -0800 (PST) MIME-Version: 1.0 Received: by 10.140.88.231 with HTTP; Wed, 18 Jan 2017 09:01:14 -0800 (PST) In-Reply-To: References: From: Duncan Mak Date: Wed, 18 Jan 2017 17:02:00 -0000 Message-ID: Subject: Re: Getting kawa -w to work on OS X To: Per Bothner Cc: kawa mailing list Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2017-q1/txt/msg00025.txt.bz2 Ah, yes, I did forget about the configure flags. However, even using the configure line that you posted, I can't seem to force the DomTerm backend to start. I tried giving more flags to -w, and this is what I see: duncan@furigana:~/git/Kawa (master)$ java kawa.repl -wjavafx kawa: -wjavafx failed: java.lang.NoClassDefFoundError: org/domterm/Backend if I just run java kawa.repl -w, I just get the Swing console, regardless of the patch or not. On Wed, Jan 18, 2017 at 1:50 AM, Per Bothner wrote: > > > On 01/17/2017 10:16 PM, Duncan Mak wrote: >> >> Hello Per, >> >> I just tried building kawa from source (using a checkout from the >> gitlab repo) and "kawa -w" works if I build it locally. >> >> Running it from the official binary distribution fails >> >> (https://github.com/Homebrew/homebrew-core/pull/8301#issuecomment-273030690) >> - this means there's something system-dependent that got baked into >> the JAR file? > > > My guess is the "system dependency" is DomTerm and/or JLine. If you build > from source, if you don't specify the configure flags --with-domterm and/or > --with-jline3 > then -w will be equivalent to -wswing - it won't try to use any of the > DomTerm > console variations. However, the binary distribution includes both, > so -w will try to use Domterm (and jline) and fail. > > The old Swing console works, but it has some basic problems, specifically > rather limited input editing. > > You can use the DomTerm and JLine from the binary distribution > to build the source distribution: > ./configure --with-domterm=/tmp/kawa-2.3 > --with-jline3=/tmp/kawa-2.3/lib/jline.jar > assuming you unziped kawa-2.3.zip into /tmp > > You can also try the attached patch. You're supposed to see something like: > > $ bin/kawa -w > java.lang.Error: setCurL:kawa.standard.Scheme@1a86f2f1 > th:Thread[main,5,main] p1:#|kawa:%N|# p2:#|%P.%N|# > at gnu.expr.Language.setCurrentLanguage(Language.java:55) > at gnu.expr.Language.setDefaults(Language.java:1206) > at kawa.repl.getLanguage(repl.java:227) > at kawa.repl.processArgs(repl.java:383) > at kawa.repl.main(repl.java:820) > Started web server on port 46315. Browse http://127.0.0.1:46315/ > java.lang.Error: DomTerm.run th:Thread[Thread-9,5,main] p1:#|kawa:%N|# > p2:#|%P.%N|# > at kawa.DomTermBackend.run(DomTermBackend.java:132) > at java.lang.Thread.run(Thread.java:745) > > -- > --Per Bothner > per@bothner.com http://per.bothner.com/ -- Duncan.