Signing or Creating a Debug Token Silently Fails

by BlackBerry Development Advisor on ‎09-09-2013 11:24 AM - edited on ‎06-24-2014 09:38 AM by Retired (3,406 Views)



Signing a BlackBerry® 10 application or creating a debug token silently fails on a computer using a non-English locale.  You may receive "Error: Null" or it may state that the command was successful.




The barsigner Java® application has a localization issue for some locales.




Upgrade to BlackBerry Native SDK version 10.3 or higher.




Locate the blackberry-signer script (blackberry-signer.bat on Windows® and blackberry-signer on Mac and Linux®) and blackberry-debugtokenrequest script (blackberry-debugtokenrequest.bat on Windows and blackberry-debugtokenrequest on Mac and Linux), which will be located in a sub directory of your BlackBerry SDK installation directory.  Open these two files in a text editor and change line:


java -Djava.awt.headless=true -Xmx512M …

To this:


java -Duser.language=en -Djava.awt.headless=true -Xmx512M …