JavaFX application fail to launch with native exe bundle

前端 未结 1 1608
悲哀的现实
悲哀的现实 2021-01-23 22:15

I have build a JavaFX application which can be executed by its jar file. However if i try to run it using the native exe bundle i am receiving two popups:

  • com/n

相关标签:
1条回答
  • 2021-01-23 22:40

    Just answering my question since after some trials i managed to build a functional .exe file by removing the code from build.xml.

    So i removed all these lines from build.xml:

    <target name="-post-jfx-deploy">
    <fx:deploy width="${javafx.run.width}" height="${javafx.run.height}" 
              nativeBundles="all"
              outdir="${basedir}/${dist.dir}" outfile="${application.title}">
      <fx:application name="${application.title}" 
                      mainClass="${javafx.main.class}"/>
      <fx:resources>
          <fx:fileset dir="${basedir}/${dist.dir}"
                      includes="*.jar"/>
      </fx:resources>
      <fx:info title="${application.title}" 
               vendor="${application.vendor}"/>
    </fx:deploy>          
    

    and i am just importing:

    <import file="nbproject/build-impl.xml"/>
    
    0 讨论(0)
提交回复
热议问题