Set the path to Gradle in the NetBeans preferences/options. 
If you are using the Gradle wrapper then Gradle will use the version specified 
by the project which it will download and cache in the .gradle folder of your 
home directory. 

Have you tried building the project from the command line? 

Scott

> On Jun 25, 2020, at 5:15 PM, slipbits <slipb...@slipbits.com> wrote:
> 
> 
> Win 7-64 & cygwin
> 
> Tried it on NB 12. Failed. 
> 
> The build message says "Could not run build action using 
> .gradle/.../gradle-6.3". 
> 
> I have JavaFX installed @ /Program File/JavaFX /javafx-sdk-14.0.1  (openJFX)
> 
> I have java installed @ /Program File/Java/jdk-14.0.1                        
> (oracle)
> 
> I have Gradle installed @ /ProgramFile/Gradle/gradle-6.5               
> (gradle.org)
> 
> However, I don't have any way to tell NB 12 that I have installed JavaFX or 
> Gradle. So, NB and OpenBeans installed something (let's call it Gradle) @ 
> /../AppData/Local/NetBeans/Cache/12.0/gradle and 
> /../AppData/Local/OpenBeans/Cache/2019.12/gradle and at /c/user/.../.gradle. 
> None of this appears to be gradle.
> 
> That's everything I know. I did try to follow the instructions and did modify 
> the build.gradle file. The modified file is:
> 
> apply plugin: 'java'
> apply plugin: 'jacoco'
> apply plugin: 'application'
> 
> 
> mainClassName = 'HelloWorld.Main'
> 
> repositories {
>     jcenter()
> }
> 
> dependencies {
>     testImplementation     'junit:junit:4.13'
> }
> 
> plugins {
>   id 'application'
>   id 'org.openjfx.javafxplugin' version '0.0.8'
> }
> 
> javafx {
>     version = "14"
>     modules = [ 'javafx.controls' ]
> }
> 
> I tried several versions of adding an "apply plugin:" for JavaFX without 
> success. Don't know what else to do.
> 
> thanks
> art
> 
> 
> 
> On 6/25/2020 9:53 AM, Scott Palmer wrote:
>> 
>>> On Thu, Jun 25, 2020 at 5:27 PM slipbits <slipb...@slipbits.com> wrote:
>>>> Under Java with Maven I see "FXML JavaFX Maven Archetype (Gluon)" and 
>>>> "Simple JavaFX Maven Archteype (Gluon)". I suspect one of these should be 
>>>> chosen. The book I'm reading, JavaFX 8 by Example, recommends Java with 
>>>> Gradle. Any idea when that will be ready?
>>>> 
>>>> 
>> 
>> Java with Gradle works now.  Make a new Gradle project, then edit 
>> build.gradle to include the javafx plugin as per the Gradle examples on 
>> OpenJFX.io  
>> 
>> https://openjfx.io/openjfx-docs/#gradle
>> https://github.com/openjfx/samples/blob/master/HelloFX/Gradle/hellofx/build.gradle
>> 
>> Regards,
>> 
>> Scott

Reply via email to