我有一个运行完美,当我运行它通过NetBeans 7.2罐子,但是当我创建了一个exe和安装exe文件,它不能运行,并抛出一个execption一个JavaFX 2.2的应用程序。
我没有得到任何日志,知道错误是来自这仅仅只用EXE发生。
下面是Ant目标。
<target name="-post-jfx-deploy">
<fx:deploy width="${javafx.run.width}" height="${javafx.run.height}"
nativeBundles="exe"
outdir="${basedir}/${dist.dir}" outfile="${application.title}">
<fx:application name="${application.title}"
mainClass="${javafx.main.class}"/>
<fx:permissions elevated="true"/>
<fx:resources>
<fx:fileset dir="${basedir}/${dist.dir}"
includes="*.jar"/>
</fx:resources>
<fx:info title="${application.title}"
vendor="${application.vendor}"/>
<fx:platform javafx="2.1+">
<fx:jvmarg value="-Xmx400m"/>
<fx:jvmarg value="-verbose:jni"/>
</fx:platform>
</fx:deploy>
</target>