我开发了 javafx 应用程序,它使用来自 apache 的 httpclient jar 来发出 http 请求。
部署应用程序时,我按照文档使用了 winx 和 Inno 设置
我的 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}">
<include name="*.jar"/>
<include name="l${basedir}/${dist.dir}/${lib.dir}/*.jar"/>
</fx:fileset>
</fx:resources>
<fx:info title="${application.title}" vendor="${application.vendor}"/>
</fx:deploy>
</target>
但是,当生成打包的可执行文件时,它似乎不包含 httpjars,因为它会引发异常。
如何在构建中添加外部 jar 文件?