-
Bug
-
Resolution: Duplicate
-
P2
-
9
-
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)
[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.
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.
- duplicates
-
JDK-8162923 Error: Unknown Argument thrown by javpackager when argument values are passed with multiple words with in quotation
- Closed