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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3 P3
    • 10
    • 9
    • deploy
    • b101
    • 9

      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.

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

              Created:
              Updated:
              Resolved: