From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 86883 invoked by alias); 29 Oct 2018 07:22:31 -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 86874 invoked by uid 89); 29 Oct 2018 07:22:30 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=HX-Received:Mon, H*c:alternative X-HELO: mail-io1-f48.google.com Received: from mail-io1-f48.google.com (HELO mail-io1-f48.google.com) (209.85.166.48) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 29 Oct 2018 07:22:28 +0000 Received: by mail-io1-f48.google.com with SMTP id q4-v6so4303815iob.8 for ; Mon, 29 Oct 2018 00:22:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=TUE5KALkuG6Y5zzY3krnVur43gfUehxvRkgFBcwRLJ0=; b=q/JZNyHu20iMjCCw+F6YyXWbnWA5nRvqvJFF7t7JUUSX1BBsFrhLNfMGwOqK0c4Icv d8eUhC5xDsvacfrqzLwidnirkHB5LKwRFGGmPODy63xgaaZHrvyExtYF0ZW0+LlcUrZH kK9Tus5Qy7Rso7p7wE7pdVfx2Xag2GhWzsOSy8FsqqFZR+87P20+8L6UkPfk8HJvwiAC 3Yifr7o2P49urKIL6wvR2IWIEoYhHSRTj6rLn3ltMh6wncCZMpupPZ7+ppbMz3Lf5UY4 NSiYf7ebumgJ8L7D968CV9VYL7oPX6PfA3wKnDGyL4VnhdUU0DyYpkzI4t0TVOPVuHSO 8aVA== MIME-Version: 1.0 References: <10215.1540734221@vpaur.eip10.org> In-Reply-To: From: Arie van Wingerden Date: Mon, 29 Oct 2018 07:22:00 -0000 Message-ID: Subject: Re: How to access JavaFx class library from Kawa? To: chaw@eip10.org Cc: kawa@sourceware.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2018-q4/txt/msg00007.txt.bz2 During my search for a solution, I found out that kawa.bat uses an unnecessary construction: set KAWA_EXTRA_PATH=3D"%KAWA_HOME%\lib\jline.jar;%KAWA_HOME%\lib\domterm.jar;%K= AWA_HOME%\lib\servlet.jar" This can be much shorter and easier and less error prone using the asterisk: set KAWA_EXTRA_PATH=3D%KAWA_HOME%\lib\* Op zo 28 okt. 2018 om 16:21 schreef Arie van Wingerden : > Hi Chaw, > > that's weird, since I got it to work without having that :) > See my previous post listing all jars I needed obviously. > > Thx! > > Op zo 28 okt. 2018 om 16:19 schreef Arie van Wingerden >: > >> With a bit of trial and error I got it to work. >> >> Now, when I start a command prompt for Kawa, I initially set an >> environment variable: >> set KAWA_USERPATH =3D >> E:\Programs\openjfx\lib\javafx.base.jar;E:\Programs\openjfx\lib\javafx.c= ontrols.jar;E:\Programs\openjfx\lib\javafx.fxml.jar;E:\Programs\openjfx\lib= \javafx.graphics.jar;E:\Programs\openjfx\lib\javafx.media.jar;E:\Programs\o= penjfx\lib\javafx.swing.jar;E:\Programs\openjfx\lib\javafx.web.jar;E:\Progr= ams\openjfx\lib\javafx-swt.jar >> >> Also I slightly modified kawa.bat and add my path to KAWA-EXTRA-PATH: >> set KAWA_EXTRA_PATH =3D >> "%KAWA_HOME%\lib\jline.jar;%KAWA_HOME%\lib\domterm.jar;%KAWA_HOME%\lib\s= ervlet.jar;"%KAWA_USERPATH% >> >> In this way it works! >> >> Please tell me if there is a more elegant way to do this ... >> >> Thx! >> >> /Arie >> >> >> Op zo 28 okt. 2018 om 15:21 schreef Arie van Wingerden > >: >> >>> Hi Chaw, >>> >>> thx! >>> >>> Now tried this: >>> set CLASSPATH=3DE:\Programs\openjdk\lib\*;E:\Programs\openjfx\lib\*;= .\* >>> last one is for jars in current dir. >>> >>> But it still fails because it cannot find javafx/geometry/Orientation. >>> >>> In openjfx\lib I see: >>> javafx-swt.jar >>> javafx.base.jar >>> javafx.controls.jar >>> javafx.fxml.jar >>> javafx.graphics.jar >>> javafx.media.jar >>> javafx.properties >>> javafx.swing.jar >>> javafx.web.jar >>> src.zip >>> >>> But no "geometry" or similar. >>> >>> /Arie >>> >>> Op zo 28 okt. 2018 om 14:43 schreef Sudarshan S Chawathe >> >: >>> >>>> > when trying to run your JavaFx example from here: >>>> > https://per.bothner.com/blog/2011/JavaFX-using-Kawa-intro/ I get >>>> errors >>>> > like: Exception in thread "main" java.lang.NoClassDefFoundError: >>>> > javafx/geometry/Orientation. >>>> > >>>> > This is understandable, since I only unpacked JavaFx in a folder, but >>>> I >>>> > don't know how to inform Kawa how to find JavaFx stuff. >>>> >>>> If you set CLASSPATH for Java one way or the other (environment >>>> variable, command-line option, ...) to include the JavaFX .jar files >>>> then you should be able to use JavaFX from Kawa as well. At least, th= at >>>> has been my experiance on a standard Debian-based setup. >>>> >>>> The CLASSPATH syntax allows using "*" to indicate "all jars in >>>> directory" which I find useful in such cases to avoid having to >>>> enumerate jars individually. >>>> >>>> Regards, >>>> >>>> -chaw >>>> >>>>