Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Posts: 656
Registered: ‎02-03-2010
My Device: Z10 LE
My Carrier: Rogers

Trouble getting Tablet OS Signing Keys installed on OSX

Trying to get my signing keys installed on OSX and getting this error :


./blackberry-signer -register -csjpin xxxxxxx -storepass xxxxxxx  client-RDK-1897173.csj client-PBDT-1897173.csj



Exception in thread "main" java.lang.NoClassDefFoundError: net/rim/device/codesigning/barsigner/BarSigner
Caused by: java.lang.ClassNotFoundException: net.rim.device.codesigning.barsigner.BarSigner
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)


Any ideas would be appreciated   Thanks.


Steven Kader at JaredCo
   Follow me on Twitter    |     Mipixi.com :  Web App for Photo Sharing
Regular Contributor
Posts: 81
Registered: ‎03-09-2012
My Device: PlayBook & Bold 9780
My Carrier: n/a

Re: Trouble getting Tablet OS Signing Keys installed on OSX

[ Edited ]

The NoClassDefFoundError is notorious, it means a Java class is not accessible. Usually due to the classpath not being set correctly to include the specific .jar file (Java equivalent of a .dll)


I think I had a simular issue, since looking back at blackberry-signer.bat I have edited it to the following:


@echo off
set JAVA_HOME=c:\Program Files\Research In Motion\BlackBerry WebWorks SDK for TabletOS\jre
"%JAVA_HOME%\bin\java.exe" -cp "%~dp0\..\lib\EccpressoAll.jar;%~dp0\..\lib\EccpressoJDK15ECC.jar;%~dp0\..\lib\BarSigner.jar;%~dp0\..\lib\BarPackager.jar;%~dp0\..\lib\KeyTool.jar" net.rim.device.codesigning.barsigner.BarSigner %*

Also verify that BarSigner.jar is present in the lib folder located in the parent folder of the bin folder. That's the jar that contains the class net.rim.device.codesigning.barsigner.BarSigner


[edit] Oh wait, you're on a Mac. That only means that you don't run barsigner.bat but it's Mac equivalent shell script. The same holds true, it cannot find BarSigner.jar at the expected location (being the "$here/../lib" folder)