CommandLineEncoder returns Unknown option error

29 views
Skip to first unread message

Ethan

unread,
Feb 17, 2017, 5:07:29 AM2/17/17
to zxing
Tried the command succesffully:
java -cp javase-3.3.0.jar:core-3.3.0.jar:jcommander-1.60.jar com.google.zxing.client.j2se.CommandLineEncoder 1487243144458147

But it failed with the following command:
java -cp javase-3.3.0.jar:core-3.3.0.jar:jcommander-1.60.jar com.google.zxing.client.j2se.CommandLineEncoder --barcode_format=CODE_39 1487243144458147
Error message is
Exception in thread "main" com.beust.jcommander.ParameterException: Unknown option: --barcode_format=CODE_39

Any hint please?


Ethan

unread,
Feb 23, 2017, 5:44:28 AM2/23/17
to zxing
My fault, just replace "=" with " ". So the command should be:
java -cp javase-3.3.0.jar:core-3.3.0.jar:jcommander-1.60.jar com.google.zxing.client.j2se.CommandLineEncoder --barcode_format CODE_39 1487243144458147

在 2017年2月17日星期五 UTC+8下午6:07:29,Ethan写道:
Reply all
Reply to author
Forward
0 new messages