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

add-launcher is not working when normal jar is used for first launcher and module is used for second launcher

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • internal
    • internal, 9, 10
    • tools

      Please go through Environment section before reading description.

      Steps to reproduce:

      1. modify the following contents in "mix.xml"

           a. <taskdef classpath="..." ===> points to %JAVA_HOME%\lib\ant-javafx.jar
           b. <fx:resources>
               <fx:fileset dir="..." ===> points to mix\jars folder.
           c. <fx:runtime strip-native-commands="false">
               <fx:module-path value=""/> ===> points to jdk9 jmods folder and modjars folder.
         
      2. After modification in step 1, save the xml file and execute the command "ant -f mix.xml -verbose" at command line.

      3. After successful execution of step 2, you will see the installer "SecondaryLauncherNormalAndModuleTest-1.0.exe" in "outdir" folder.

      4. Double click the installer and continue the installation.

      5. execute the command "set _JAVA_LAUNCHER_DEBUG=true" at the command line.

      6. Navigate to the installed folder using command %LOCALAPPDATA%\SecondaryLauncherNormalAndModuleTest and execute the following commands
        a. SecondaryLauncherNormalAndModuleTest.exe 1> app1.log
        b. app2.exe 1> app2.log
        
      ACTUAL RESULT:
      app1.log outputs PASS1
      app2.log outputs PASS1

      EXPECTED RESULT:
      app1.log outputs PASS1
      app2.log outputs PASS2

      7. Attachment also contains "*.cfg" files bundled with jars.

            herrick Andy Herrick (Inactive)
            rgangadhar Ramesh Gangadhar
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: