Java 前缀为;外汇“;对于“元素”;外汇:部署;不受约束

Java 前缀为;外汇“;对于“元素”;外汇:部署;不受约束,java,netbeans,exe,Java,Netbeans,Exe,我正在尝试用Java NetBeans制作我的应用程序的EXE包 但是,当我单击Clean and build…,此消息将显示在build.xml中…。 如何解决 <project name="bra" default="default" basedir="."> <description>Builds, tests, and runs the project bra.</description> <import file="nbproject/buil

我正在尝试用Java NetBeans制作我的应用程序的EXE包 但是,当我单击Clean and build…,此消息将显示在build.xml中…。 如何解决

<project name="bra" default="default" basedir=".">
<description>Builds, tests, and runs the project bra.</description>
<import file="nbproject/build-impl.xml"/>
<target name="-post-jfx-deploy">
    <fx:deploy width="${javafx.run.width}" height="${javafx.run.height}" 
       nativeBundles="all"
       outdir="${basedir}/${dist.dir}" outfile="${application.title}">

        <fx:application name="${application.title}" 
              mainClass="${javafx.main.class}"/>
        <fx:resources>
            <fx:fileset dir="${basedir}/${dist.dir}" includes="*.jar"/>
            <fx:fileset dir="dist" includes="lib/*.jar"/>
        </fx:resources>
        <fx:info title="${application.title}"  vendor="${application.vendor}"/>
    </fx:deploy>          
 </target>
 </project>

构建、测试和运行项目。
终于完成了。。!! 只需编辑这一行:

<project name="bra" default="default" basedir="." xmlns:fx="javafx:com.sun.javafx.tools.ant">


要在XML中定义fx命名空间

请定义
fx
命名空间。如何@亨利,你能再澄清一下吗?我不擅长XML