I am developing an JavaFX application and used the native packaging tool (incl. Inno Setup 5 and WiX) to create .exe files and installers. The program is a self-containing application. When I install and execute it on my own computer (Windows 10) it seems not to run. The error message after clicking the launch icon is: "no main class" and after closing this dialog another dialog error:"Failed to launch JVM"
build.xml
<?xml version="1.0" encoding="UTF-8"?>
<project name="SVG Prototype Application" basedir="." xmlns:fx="javafx:com.sun.javafx.tools.ant">
<path id="fxant">
<filelist>
<file name="C:\Program Files\Java\jdk1.8.0_31\lib\ant-javafx.jar"/>
<file name="C:\Program Files\Java\jdk1.8.0_31\jre\lib\ext\jfxrt.jar"/>
<file name="${basedir}"/>
</filelist>
</path>
<taskdef classpathref="fxant"
resource="com/sun/javafx/tools/ant/antlib.xml"
uri="javafx:com.sun.javafx.tools.ant"/>
<fx:application id="fxApplication"
name="Test Application"
mainClass="com.testlibrary.Main"
version="1.0"
/>
<fx:jar destfile="dist/test.jar">
<!-- Details about application -->
<fx:application name="SVGPrototype" mainClass="com.testlibrary.Main"/>
<!-- Define what auxilary resources are needed -->
<fx:resources>
<fx:fileset dir="dist" includes="lib/*.jar"/>
</fx:resources>
<!-- What to include into result jar file?
Everything in the build tree -->
<fileset dir="build/classes"/>
</fx:jar>
<fx:deploy height="400" nativeBundles="all" outdir="dist" outfile="SVGViewer" placeholderId="ZZZ" width="600">
<fx:application name="Test Application" mainClass="com.testlibrary.Main"/>
<fx:resources>
<fx:fileset dir="dist" includes="test.jar"/>
<fx:fileset dir="dist" includes="resources/**"/>
</fx:resources>
</fx:deploy>
package.cfg generated
app.mainjar=test.jar
app.version=1.0
app.id=com.testlibrary
app.preferences.id=com/testlibrary
app.mainclass=com/testlibrary/Main
app.classpath=
Does someone know where is the problem? Thanks in advance!