Eclipse在没有运行时的情况下部署javafx exe [英] Eclipse deploy javafx exe without runtime

查看:308
本文介绍了Eclipse在没有运行时的情况下部署javafx exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在eclipse中有一个现有的javafx项目(JDK 1.8)。目标是创建一个包含可执行文件的msi包。但是不应该包含java运行时。但是,当我启动应用程序时,它显示以下错误:

I have an existing javafx project in eclipse (JDK 1.8). The goal ist to create a msi package which contains an executable. But the java runtime should NOT be included. But when I start the application it shows following error:


无法找到库... \\\\\\\\\\\\\\\\\\\\\\\\\\\ \\ jvm.dll

Failed to find library ...\runtime\bin\server\jvm.dll

build.xml fx:deploy目标如下所示:

The build.xml fx:deploy target looks like this:

    <fx:deploy embedJNLP="true" 
        install="false" 
        shortcut="true" 
        extension="false" 
        includeDT="false" 
        offlineAllowed="true" 
        outdir="${basedir}/deploy" 
        outfile="test" 
        nativeBundles="msi" 
        updatemode="background" 
        verbose="true">

        <fx:platform basedir=""/>
        <fx:info title="test" vendor="test GmbH" />

        <fx:application refId="fxApplication" />
        <fx:resources refid="appRes" />
        <fx:preferences install="false" shortcut="true" />

    </fx:deploy>

平台basedir配置为不包括运行时。 < fx:platform basedir =/>

The platform basedir is configured to NOT include runtime. <fx:platform basedir=""/>

如何配置要开始的项目默认安装的JRE?

推荐答案

我不确定,但我的猜测是,目前有一个bug javafx打包器。即使< fx:platform basedir =/> 正确导致不包括运行时,生成的配置仍包含非现有运行时文件夹的条目

I am not sure, but my guess is, there is currently a bug within the javafx packager. Even when <fx:platform basedir=""/> correctly results in not including a runtime the generated config still includes an entry to a non existing runtime folder

app.runtime=$APPDIR\runtime 

在生成的jar旁边的配置中删除此条目应导致在系统上使用默认安装的JRE。

Deleting this entry within the config next to your generated jar should result in using the default installed JRE on the system.

这篇关于Eclipse在没有运行时的情况下部署javafx exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆