【发布时间】:2012-09-22 05:02:04
【问题描述】:
我有一个 Javafx 2.2 应用程序,当我从 netbeans 7.2 将它作为 jar 运行时,它可以完美运行,但是当我创建一个 exe 并安装该 exe 时,它无法运行并抛出一个 execption。
我没有任何日志知道错误来自哪里,而且这只发生在只有 exe 的情况下。
下面是蚂蚁目标。
<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>
【问题讨论】:
-
能否提供异常的文字或截图?
-
我已按要求附上了错误截图
-
不幸的是,这个不是很有帮助。能不能开启Java Console(java.com/en/download/help/javaconsole.xml)看看有没有消息?