netbeans中部署Javafx应用程序时出现问题

时间:2019-07-03 12:11:02

标签: java javafx netbeans deployment java-8

我遵循了有关从JavaFX应用程序部署NetBeans的教程。 但是部署后,我发现.exe这个文件在另一台PC上无法正常工作。

我已经安装了Wixinno安装程序6,将它们放在路径中,然后输入了project ->package as->exe安装程序,并将此代码添加到了build.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="DarinnAPP.jar"/>
              </fx:resources>
              <fx:info title="${application.title}" vendor="${application.vendor}"/>
          </fx:deploy>          
     </target>

我想要一个可执行文件来将应用程序安装在另一台PC中。 如果您能帮助我找到解决方案,我将不胜感激。

0 个答案:

没有答案