Deployment 使用预加载程序独立部署JavaFX
我创建了一个JavaFX应用程序,其中包括用于数据库的derby.jar和用于生成报告的Jasper Reports,这意味着我还包括了生成报告所需的35+jar文件,并且我还使用了一个预加载程序类来设置加载过程的动画。我决定使用定制的部署ant任务来生成安装程序。下面是部署ant任务Deployment 使用预加载程序独立部署JavaFX,deployment,javafx-2,javafx,Deployment,Javafx 2,Javafx,我创建了一个JavaFX应用程序,其中包括用于数据库的derby.jar和用于生成报告的Jasper Reports,这意味着我还包括了生成报告所需的35+jar文件,并且我还使用了一个预加载程序类来设置加载过程的动画。我决定使用定制的部署ant任务来生成安装程序。下面是部署ant任务 <target name="-post-jfx-deploy"> <fx:deploy width="${javafx.run.width}" height="${javafx.
<target name="-post-jfx-deploy">
<fx:deploy width="${javafx.run.width}" height="${javafx.run.height}"
nativeBundles="image"
outdir="${basedir}/${dist.dir}"
outfile="${application.title}">
<fx:application name="${application.title}"
mainClass="${javafx.main.class}"
preloaderClass="transconnect.system.preloader.Splash"
version="1.1"/>
<fx:resources>
<fx:fileset dir="${basedir}/${dist.dir}" includes="*.jar"/>
<fx:fileset id="preloader-files"
requiredFor="preloader"
dir="dist"
includes="lib/TransConnect System Preloader.jar"/>
<fx:fileset dir="dist" includes="lib/*.jar"/>
</fx:resources>
<fx:info title="${application.title}"
vendor="${application.vendor}"
description="A Car Rental System"/>
<fx:preferences shortcut="true"
menu="true"/>
</fx:deploy>
</target>
但是每次我运行productjar文件时,我都会得到一个错误,预加载程序类找不到这个错误