[ 
https://issues.apache.org/jira/browse/NETBEANS-2004?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16788175#comment-16788175
 ] 

Laszlo Kishalmi commented on NETBEANS-2004:
-------------------------------------------

>From Scott Palmer:

I just recently attempted to make a modular project.  
 
 
I’m using JavaFX so I tried the somewhat-official  javafx gradle plugin and 
used the modular gradle example from here: 
[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?
 
>From the command line ‘“gradle build” 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 —add-module and —module-path args to various build steps, but I was 
trying to do things based on the examples.
 
Scott

> No real Support for Gradle Modular Projects.
> --------------------------------------------
>
>                 Key: NETBEANS-2004
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-2004
>             Project: NetBeans
>          Issue Type: Bug
>          Components: projects - Gradle
>         Environment: Product Version: Apache NetBeans IDE Dev (Build 
> 20190127-unknown-revn)
> Java: 11.0.2; OpenJDK 64-Bit Server VM 11.0.2+7
> Runtime: OpenJDK Runtime Environment 11.0.2+7
>            Reporter: Jose Pereda
>            Assignee: Laszlo Kishalmi
>            Priority: Major
>         Attachments: Bildschirmfoto 2019-02-06 um 17.22.17.png, Captura de 
> pantalla 2019-01-27 a las 19.55.13.png, gradleJava.zip
>
>
> Opening a gradle non-modular project works fine, but when the project is 
> modular, it shows errors all over the place.
> However, Clean, Build, Run, or any of the gradle tasks work fine. 
> !Captura de pantalla 2019-01-27 a las 19.55.13.png|width=1328,height=789!
>  
> See OpenJFX samples 
> [non-modular|https://github.com/openjfx/samples/tree/master/IDE/NetBeans/Non-Modular/Gradle/hellofx]
>  and 
> [modular|https://github.com/openjfx/samples/tree/master/IDE/NetBeans/Modular/Gradle/hellofx].
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to