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

Error: Unknown argument: -Dsqe.qux.corge=grault is thrown by javapackager when -BjvmOptions="-Dsqe.foo.bar=baz -Dsqe.qux.corge=grault" is passed to javapackager

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • 9
    • 9
    • deploy
    • java version "9-internal"
      Java(TM) SE Runtime Environment (fastdebug build 9-internal+0-2015-10-11-073138.cbensen.jdk9udev)
      Java HotSpot(TM) Server VM (fastdebug build 9-internal+0-2015-10-11-073138.cbensen.jdk9udev, mixed mode)

    • 9

      [Mac Developer Build 10/05/2016]

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

      Please find the attachment "com.greetings.jar" for simple normal jar.

      ==================================================================================
      JDK 9 EXECUTION
      ==================================================================================

      java -version
      java version "9-internal"
      Java(TM) SE Runtime Environment (fastdebug build 9-internal+0-2016-10-04-145039.cbensen.jdk9udev)
      Java HotSpot(TM) 64-Bit Server VM (fastdebug build 9-internal+0-2016-10-04-145039.cbensen.jdk9udev, mixed mode)


      SCENARIO ONE:
      try the below command at command line with JDK9.

      javapackager -deploy -verbose -outdir outdir -outfile test -native image -Bclasspath=com.greetings.jar -appclass com.greetings.App1 -BjvmProperties="sqe.aba.caba=dabacaba" -name JvmOptionsTest -srcdir jars -srcfiles com.greetings.jar -BmainJar=com.greetings.jar -BjvmOptions="-Dsqe.foo.bar=baz -Dsqe.qux.corge=grault"
      Exception in thread "main" com.sun.javafx.tools.packager.PackagerException: Error: Unknown argument: -Dsqe.qux.corge=grault
              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
      ==============================================================================================================
      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

      SCENARIO TWO:
      try the below command at command line:

      javapackager -deploy -verbose -outdir outdir -outfile test -native image -Bclasspath=com.greetings.jar -appclass com.greetings.App1 -BjvmProperties="sqe.aba.caba=dabacaba" -name JvmOptionsTest -srcdir jars -srcfiles com.greetings.jar -BmainJar=com.greetings.jar -BjvmOptions="-Dsqe.foo.bar=baz -Dsqe.qux.corge=grault"

      check the attachment "jvm_options_test.txt" for complete log of JDK8 execution.

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

              Created:
              Updated:
              Resolved: