我遵循了有关从JavaFX
应用程序部署NetBeans
的教程。
但是部署后,我发现.exe
这个文件在另一台PC上无法正常工作。
我已经安装了Wix
和inno
安装程序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中。 如果您能帮助我找到解决方案,我将不胜感激。