From users-return-2511-archive-asf-public=cust-asf.ponee.io@netbeans.apache.org Fri Mar 8 17:00:10 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 60AA9180626 for ; Fri, 8 Mar 2019 18:00:09 +0100 (CET) Received: (qmail 62183 invoked by uid 500); 8 Mar 2019 17:00:08 -0000 Mailing-List: contact users-help@netbeans.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@netbeans.apache.org Received: (qmail 62173 invoked by uid 99); 8 Mar 2019 17:00:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Mar 2019 17:00:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id D6A65185AE2 for ; Fri, 8 Mar 2019 17:00:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.298 X-Spam-Level: ** X-Spam-Status: No, score=2.298 tagged_above=-999 required=6.31 tests=[DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=2, KAM_NUMSUBJECT=0.5, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 8IL-iG1Jpc1E for ; Fri, 8 Mar 2019 17:00:06 +0000 (UTC) Received: from mail-qk1-f169.google.com (mail-qk1-f169.google.com [209.85.222.169]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 933E65FB44 for ; Fri, 8 Mar 2019 17:00:05 +0000 (UTC) Received: by mail-qk1-f169.google.com with SMTP id h28so11548133qkk.7 for ; Fri, 08 Mar 2019 09:00:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:message-id:date:cc:to; bh=//2UsJQCHAwaKfFPXR3hrUdLUEZN+NBzMp67Q7u71VY=; b=QmGAXVzbinVGAAH0PW7SYL23ALvuUJrbW3hDe3H/vK7EzBlfOPTjiEmJbrbO+m0c4a N4UiiMxUE1uXNMFu9FGRZeGXFM8bAq+/Jjta4Zraf3HFCAmgF5xY7j0bMEYpbtoKiIi/ yiGRNKXf/EGnhBIoXEXQduYrchoz/of/9oSGai49C6+hqvhvyH4ZrRNJnkSlIrVUYbbB A9nsGRXw497rFlNqQjaBmfXzEVCjbW8rGF0APoYy0794sEBXBjbhBvRje9x6go4ZmYNa A8WRCYy8duBDU5ztjnTPkN9+i23fmZkK9kKaWJwAJLsA+h+5nROSHSfANmaZsWDHXiqP jYRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:message-id:date:cc:to; bh=//2UsJQCHAwaKfFPXR3hrUdLUEZN+NBzMp67Q7u71VY=; b=sj7FEsUS0e7o0ZJyVYheM5ngxJxt47mv2acaEQTgv2MBJQlVDW+sYNZ3SzJHAbal3q tEk6uCuM6kO5jWmX/DrqdUKuRRnpfGrWSBwFrRK1k8Nh7cWpeMZt4qMKlIIrKTd6L+KF PEQJpfYvxIksOx/wXpKXAQyV3T15Bae0dj2gRH6qDKl8tpP5FtO5QMSbETud1K3eCNhm YhHJs746GOCyvUIuStN0cJeA6vPvMQpkopTG9VTeS3Q3XSxb9F4ejbngrXNl2UMq5G1B fhjFPfrU5iE/aNQVEAPKXIfND6MI5uhohPeLwwGPz0vulcSg3ckfM8C0kN3yejseKmuC ZMbQ== X-Gm-Message-State: APjAAAVRv/1cHy+KUssz2zUZX6MFpSVTxPEcQAxxXO1vcT5E23Joobrq dr1Kga6xW1ksZE4ScqMInpkvrOky X-Google-Smtp-Source: APXvYqyK2TynH2PWB/qVr+Lse4/Jw4WQ+kKcM6u8CagYlOr2DtBPADyanQ1W+Z9Jg/3ECAGTaaCx2g== X-Received: by 2002:a37:2fc1:: with SMTP id v184mr14800627qkh.71.1552064404402; Fri, 08 Mar 2019 09:00:04 -0800 (PST) Received: from [137.237.167.160] ([148.59.199.238]) by smtp.gmail.com with ESMTPSA id o5sm5180105qkl.24.2019.03.08.09.00.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Mar 2019 09:00:03 -0800 (PST) From: Scott Palmer Content-Type: multipart/alternative; boundary="Apple-Mail=_BBCA465E-7813-4373-92AC-43F16E33150E" Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.2\)) Subject: Failing Gradle support for modular JavaFX project in 11-vc2 Message-Id: <9907353F-8C2D-411F-A037-0CA9D627BA8E@gmail.com> Date: Fri, 8 Mar 2019 12:00:02 -0500 Cc: Laszlo Kishalmi To: NetBeans Mailing List X-Mailer: Apple Mail (2.3445.104.2) --Apple-Mail=_BBCA465E-7813-4373-92AC-43F16E33150E Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 I just recently attempted to make a modular project. =20 I=E2=80=99m using JavaFX so I tried the somewhat-official javafx gradle = plugin and used the modular gradle example from here:=20 = https://github.com/openjfx/samples/tree/master/CommandLine/Modular/Gradle/= hellofx = NetBeans is not happy with this at all. module-info.java claims the javafx.controls module cannot be found The code editor complains about all the javafx imports stating that: "package javafx.scene is not visible (package javafx.scene is declared in the unnamed module, but module = javafx.scene does not read it)" Does anyone know the solution? =46rom the command line =E2=80=98=E2=80=9Cgradle build=E2=80=9D works = without any complaints. It looks like NetBeans sees the JavaFX stuff as added to the class path = instead of the module path. I can use JavaFX in a non-modular way, and I can hack the Gradle = manually to insert =E2=80=94add-module and =E2=80=94module-path args to = various build steps, but I was trying to do things based on the = examples. Scott --Apple-Mail=_BBCA465E-7813-4373-92AC-43F16E33150E Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 I = just recently attempted to make a modular project.  


I=E2=80=99m using JavaFX so I tried the somewhat-official =  javafx gradle plugin and used the modular gradle example from = here: 

NetBeans is not happy with this at all.

module-info.java claims = the javafx.controls module cannot be found

The code editor complains about all the = javafx imports stating that:

   "package javafx.scene is = not visible
    (package javafx.scene is declared in the = unnamed module, but module javafx.scene does not read it)"


Does anyone know the solution?

=46rom the command line =E2=80=98=E2=80=9C= gradle build=E2=80=9D works without any complaints.

It looks like NetBeans = sees the JavaFX stuff as added to the class path instead of the module = path.

I can = use JavaFX in a non-modular way, and I can hack the Gradle manually to = insert =E2=80=94add-module and =E2=80=94module-path args to various = build steps, but I was trying to do things based on the = examples.

Scott

= --Apple-Mail=_BBCA465E-7813-4373-92AC-43F16E33150E--