Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8126449

Native bundle - wrong main jar, wrong executable class

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8
    • 7u6
    • deploy
    • Windows 7 64bit, JDK 1.7.0_06 b21 64bit, JavaFX 2.2b19 64bit

        On Windows 7 64bit, I use JDK 1.7.0_06 b21 64bit and JavaFX 2.2 b19 64bit (the ones that comes co-bundled with this JDK preview release). I also installed Wix 3.5 and Inno Setup 5.5.1 and set them on my PATH.

        Using https://blogs.oracle.com/talkingjavadeployment/entry/native_packaging_for_javafx and http://docs.oracle.com/javafx/2/deployment/javafx_ant_task_reference002.htm I managed to add a deployment ANT task at the end of the build.xml file attached to my NetBeans 7.2 project (see attached build.xml file).

        The JNLP for the deployment application seems to be correctly generated (see attached MFCL-Viewer.jnlp file). The installer EXE and MSI are produced.
        But the app native launcher somehow references an auxiliary dependency JAR as it's main jar (see attached package.cfg).
        Furthermore, when double clicked, the native launcher launches an invalid JavaFX application (one of the test cases contained in this dependencies) instead of the JavaFX main class defined in the project settings in NetBeans and referenced in the build.xml.

        A third and less impacting issue is that the icon defined in the ANT task and correctly referenced in the JNLP is not showing up in the native launcher.

        Thanks.

          1. build.xml
            6 kB
          2. MFCL-Viewer.jnlp
            1 kB
          3. package.cfg
            0.1 kB

              igor Igor Nekrestyanov (Inactive)
              fbouyajfx Fabrice Bouyé (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported: