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

Validation of extension (.jar) missing for parameters passed to -BmainJar in javapackager

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Cannot Reproduce
    • Affects Version/s: 9
    • Fix Version/s: 10
    • Component/s: deploy
    • Environment:
    • Subcomponent:
    • Introduced In Build:
      b101
    • Introduced In Version:
      9

      Description

      Steps to reproduce:
      1. use following command to create "HelloWorldApp" application in windows 7 system.
      javapackager "-deploy" "-verbose" "-outdir" "temp" "-outfile" "test" "-native" "exe" "-linkmodulepath" "C:\Users\rbgangad.ORADEV\Downloads\jdk-9_windows-x64_bin_101_jan20\jdk-9\jmods" "-srcdir" "temp" "-srcfiles" "Licence.txt" -appclass "com.greetings.App1" -BsystemWide="true" -name HelloWorldApp -BmainJar="Licence.txt"

      2. have a look at parameter -BmainJar passed to javapackager, eventhough it is a simple (*.txt) , i was successfully able to create "HelloWorldApp-1.0.exe".

      EXPECTED OUTPUT:
      validation of extension of file should be done i.e. (*.jar) file extension has to be checked for -BmainJar argument.

        Attachments

          Activity

            People

            Assignee:
            vrao Vivek Rao (Inactive)
            Reporter:
            rgangadhar Ramesh Gangadhar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: