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

Native bundle - wrong main jar, wrong executable class


    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 7u6
    • Fix Version/s: 8
    • Component/s: deploy
    • Environment:

      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.



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

            Issue Links



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


                  • Created: