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

Error: Unknown argument: "Application" is thrown by javpackager when -Btitle="Sqe Application Title" is passed as argument to javpackager

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2
    • 9
    • 9
    • deploy
    • 9
    • linux

    Description

      [Mac Developer Build: 10/05/2016]

      please find the attachment for simple normal jar (com.greetings.jar)

      ISSUE OBSERVED: Mutliple words within quotation (single or double quotation) are not accepted by some of javapackager arguments.

      Steps to reproduce

      ================================================================
      JDK 9 EXECUTION STARTS
      ================================================================
      SCENARIO ONE:

      try the following command at command line.

      javapackager -deploy -verbose -outdir outdir -outfile test -native image -Bclasspath=com.greetings.jar -title "Sqe Application Title" -BmainJar=com.greetings.jar -appclass com.greetings.App1 -name SQEDEMOAPP -srcdir jars -srcfiles com.greetings.jar
      Exception in thread "main" com.sun.javafx.tools.packager.PackagerException: Error: Unknown argument: Application
              at com.sun.javafx.tools.packager.Main.main(jdk.packager/Main.java:367)

      It looks like space is not accepted in between words.

      NOTE: Quotation are available for accepting multiple words e.g. "Sqe Application Title" for -Btitle=

      SCENARIO TWO:

      Tried with Single Quotation also for e.g. -Btitle='Sqe Application Title'

      javapackager -deploy -verbose -outdir outdir -outfile test -native image -Bclasspath=com.greetings.jar -title 'Sqe Application Title' -BmainJar=com.greetings.jar -appclass com.greetings.App1 -name SQEDEMOAPP -srcdir jars -srcfiles com.greetings.jar
      Exception in thread "main" com.sun.javafx.tools.packager.PackagerException: Error: Unknown argument: Application
              at com.sun.javafx.tools.packager.Main.main(jdk.packager/Main.java:367)


      In Contrast Check the execution in JDK8, it is working fine.

      ================================================================
      JDK 8 EXECUTION STARTS
      ================================================================
      java -version
      java version "1.8.0_122-ea"
      Java(TM) SE Runtime Environment (build 1.8.0_122-ea-b01)
      Java HotSpot(TM) 64-Bit Server VM (build 25.122-b01, mixed mode)

      javapackager -version
      Java Packager version 8.0

      javapackager -deploy -verbose -outdir outdir -outfile test -native image -Bclasspath=com.greetings.jar -title "Sqe Application Title" -BmainJar=com.greetings.jar -appclass com.greetings.App1 -name SQEDEMOAPP -srcdir jars -srcfiles com.greetings.jar
      No base JDK. Package will use system JRE.
      No base JDK. Package will use system JRE.
      Preparing Info.plist: /var/folders/sx/mb704jwn5b36y_pjsg1vfqjm001wjw/T/fxbundler8405123047567107057/macosx/Info.plist
        Using default package resource [Bundle config file] (add package/macosx/Info.plist to the class path to customize)
        Using default package resource [icon] (add package/macosx/SQEDEMOAPP.icns to the class path to customize)
      Creating app bundle: /export/home/gtee/ramesh/outdir/bundles/SQEDEMOAPP.app
      Running [security, find-certificate, -c, Developer ID Application: , -a]
      Did not find a key matching 'Developer ID Application: '
        Config files are saved to /var/folders/sx/mb704jwn5b36y_pjsg1vfqjm001wjw/T/fxbundler8405123047567107057/macosx. Use them to customize package.

      Attachments

        Issue Links

          Activity

            People

              vdrozdov Victor Drozdov (Inactive)
              rgangadhar Ramesh Gangadhar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: