我正在使用 Windows 8.1 64位,4GB RAM 和 JDK版本为8u25 64位的Netbeans 8.0.2 开发JavaFX 8应用程序。应用程序平台是JDK版本为8u25 32位,问题在于当我构建项目并打包时,应用程序可以正常运行,但当我进行原生打包以便将32位JRE与exe文件一起分发时,Netbeans输出以下信息并跳过构建本机包:
所以我的问题是为什么Netbeans会将FX SDK版本与项目平台不匹配?虽然我已经在项目设置中指定使用32位JDK,在build.xml文件中也是如此,并且如何随附32位JRE来发布应用程序?
"由于FX SDK和JRE运行时之间的位架构不匹配,所以配置问题导致Bundler Windows Application Image被跳过。 解决建议:确保使用正确位架构的JRE运行时。"
这是项目Build.xml文件中的Target标签:
<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:platform basedir="${java.home}"/>
<fx:platform basedir="C:\Program Files (x86)\Java\jdk1.8.0_25\jre"/>
<fx:application name="${application.title}" mainClass="${javafx.main.class}"/>
<fx:resources>
<fx:fileset dir="${basedir}/${dist.dir}" includes="*.jar"/>
</fx:resources>
<fx:info title="${application.title}" vendor="${application.vendor}"/>
</fx:deploy>
所以我的问题是为什么Netbeans会将FX SDK版本与项目平台不匹配?虽然我已经在项目设置中指定使用32位JDK,在build.xml文件中也是如此,并且如何随附32位JRE来发布应用程序?