java - 元素“fx:deploy”的前缀“fx”未绑定
问题描述
我正在尝试在 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">
定义fx命名空间
推荐阅读
- android - Android SIP 客户端多个配置文件
- php - 将项目从 localhost 移动到 cpanel 后,Laravel 需要更改 public_path 以上传文件
- html - Bootstrap 3列粘性滚动
- angular - Angular:如何从优化器中排除 Angular 应用程序
- php - 使用 PHP 从 JSON 文件中提取键值对输出
- python - 如何在for循环中设置范围索引
- php - 无法创建 Symfony 4 项目
- ruby - Rubocop 使用错误版本的 Ruby - 失败
- c++ - 我可以/应该在#ifndef 之后输入我想要的任何内容吗?
- javascript - Bootstrap jquery hidden and shown.bs.modal 模态属性不起作用