Java 11 does not contain JavaFX.  You should use the Gradle or Maven plugins, 
or use a JDK that has added the JavaFX modules (Such as the “full” Zulu JDK 
from Azul).
I strongly recommend migrating away from Ant if you are refreshing the project 
to use modern tools.

Scott

> On Feb 9, 2022, at 6:25 PM, Robert Lockwood <rnlockw...@gmail.com> wrote:
> 
> I have a Java application from some years ago using an old Netbeans, JavaFX, 
> Scene Builder, and Java 8.  I've been asked to add features to and thought 
> that I would migrate it to a more current IDE etc. and put an end to the 
> warnings I receive when I build. I'm using macOA Monterey and an Apple 
> Silicon M1 macBook.
> 
> I've managed to fix all the syntax errors with help from Dr. Google but 
> cannot complete a build. It cannot find the executable or the deployment 
> library in the JDK.  I've supplied the locations in the libraries and jars 
> list and have added the path to the Java Home folder in /Library/... (as a 
> side issue Netbeans cannot find the javadocs).
> 
> I don't know what I missed and what to try next so I'm asking for help here.  
> First time use of this mailing list, too. The application won't be deployed 
> BTW.  I understand the Nashorn warnings.
> 
> Path to JDK /Lbrary/Java/JavaVirtualMachines/jdk-11.0.2.jdk added to $PATH
> 
> Build output slightly edited with '***' prepended to warnings and errors of 
> note:
> 
> *** Warning: java executable not found in JDK, evaluating java executable in 
> RT instead.
> init:
> deps-clean:
> Updating property file: 
> /Users/nate/NetBeansProjects_12/FireMapperMetadataTool_12/build/built-clean.properties
> Deleting directory 
> /Users/nate/NetBeansProjects_12/FireMapperMetadataTool_12/build
> clean:
> init:
> deps-jar:
> Created dir: /Users/nate/NetBeansProjects_12/FireMapperMetadataTool_12/build
> Updating property file: 
> /Users/nate/NetBeansProjects_12/FireMapperMetadataTool_12/build/built-jar.properties
> Created dir: 
> /Users/nate/NetBeansProjects_12/FireMapperMetadataTool_12/build/classes
> Created dir: 
> /Users/nate/NetBeansProjects_12/FireMapperMetadataTool_12/build/empty
> Created dir: 
> /Users/nate/NetBeansProjects_12/FireMapperMetadataTool_12/build/generated-sources/ap-source-output
> Compiling 9 source files to 
> /Users/nate/NetBeansProjects_12/FireMapperMetadataTool_12/build/classes
> Copying 5 files to 
> /Users/nate/NetBeansProjects_12/FireMapperMetadataTool_12/build/classes
> compile:
> < 14 Nashorn warnings >
> Warning: Nashorn engine is planned to be removed from a future JDK release
> 
> Copying 11 files to 
> /Users/nate/NetBeansProjects_12/FireMapperMetadataTool_12/dist/lib
> *** : java executable not found in JDK, evaluating java executable in RT 
> instead.
> Detected JavaFX Ant API version 1.0
> 
> /Users/nate/NetBeansProjects_12/FireMapperMetadataTool_12/nbproject/jfx-impl.xml:3550:
>  The following error occurred while executing this line:
> /Users/nate/NetBeansProjects_12/FireMapperMetadataTool_12/nbproject/jfx-impl.xml:3578:
>  The following error occurred while executing this line:
> /Users/nate/NetBeansProjects_12/FireMapperMetadataTool_12/nbproject/jfx-impl.xml:3597:
>  The following error occurred while executing this line:
> /Users/nate/NetBeansProjects_12/FireMapperMetadataTool_12/nbproject/jfx-impl.xml:524:
>  Error:
> *** JavaFX deployment library not found in active JDK.
> 
> *** Please check that the JDK is correctly installed and its version is at 
> least 7u4 on Mac or 7u6 on other systems.
> BUILD FAILED (total time: 7 seconds)

Reply via email to