This might be a duplicate, but even after searching I wasn't able to fix my problem, so that's why I am asking here for help.

I have created Java project in NetBeans 12.5, everything runs fine and compiles when I run it through IDE, the problem occurs when I try to create EXE file, by using Package As -> EXE installer option. Error is following:

C:\Users\Aldin\Documents\NetBeansProjects\Java_CarF_Manager\nbproject\build-native.xml:519: typedef class com.sun.javafx.tools.ant.FXJar cannot be found
 using the classloader AntClassLoader[]

When I click onto "C:\Users\Aldin\Documents\NetBeansProjects\Java_CarF_Manager\nbproject\build-native.xml:519:" it opens me build-native.xml file which I have no clue what is it used for and it selects following part of .XML code:

 <typedef name="fx_jar" classname="com.sun.javafx.tools.ant.FXJar" classpath="${javafx.ant.classpath}"/>

I've tried to google my problem and before asking question here I previously read that the reason why's this happening is because I am trying to compile a program without required dependencies, now if that's case here I'd like to request some in-depth guide how to setup these dependencies or someone to walk-me-through the process of adding them into my Project, because as I said I pretty much don't have clue about these files.

I am currently running Windows 10 OS.

0

There are 0 best solutions below