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:
Failed to find library ...\runtime\bin\server\jvm.dll
The build.xml fx:deploy target looks like this:
install="false"
shortcut="true"
extension="false"
includeDT="false"
offlineAllowed="true"
outdir="${basedir}/deploy"
outfile="test"
nativeBundles="msi"
updatemode="background"
verbose="true">
The platform basedir is configured to NOT include runtime.
How to configure project to start with the default installed JRE?
解决方案
I am not sure, but my guess is, there is currently a bug within the javafx packager. Even when correctly results in not including a runtime the generated config still includes an entry to a non existing runtime folder
app.runtime=$APPDIR\runtime
Deleting this entry within the config next to your generated jar should result in using the default installed JRE on the system.