While running encrypt .bat -g test on the command prompt.

I am getting following error : 2014-03-20 19:55:51,549 INFO [main] security.EncryptionUtil main (EncryptionUti l.java:289) - Invalid option format: .bat

1 Answer 1


In the bin directory just run encrypt -g test. Don't include the .bat bit.

  • It doesn't work for me. I've tried with "run encrypt -g test" and with "run encrypt.bat -g test", but I continue getting the same error 289. Jun 25, 2015 at 14:47
  • Ok, I re-wrote it by hand instead of copy-paste... and it worked! Jun 25, 2015 at 15:03
  • You don't need the word 'run' in the command just "encrypt -g test" Jun 25, 2015 at 20:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.