Welcome!

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

Adobe AIR Development

Reply
Developer
ajerman
Posts: 101
Registered: ‎03-18-2011
My Device: Playbook Simulator
My Carrier: AT&T
Accepted Solution

More Code Signing Issues

Alright, I've been trying for about a week to get my app to sign with no luck. I finally got a new certificate from RIM to start fresh from the command line this time, rather than a half Flash Builder, half command line thing I'd tried before.

 

Whenever I try to do this line:

 

blackberry-keytool -genkeypair -keystore <output_file.p12> 
     -storepass <create_a_password> -dname "cn=<company_name>" -alias author

I get this output:

 

 

Exception in thread "main" java.lang.NoClassDefFoundError: sun.security.util.DerOutputStream
        at java.lang.J9VMInternals.verifyImpl(Native Method)
        at java.lang.J9VMInternals.verify(J9VMInternals.java:72)
        at java.lang.J9VMInternals.initialize(J9VMInternals.java:134)
Caused by: java.lang.ClassNotFoundException: sun.security.util.DerOutputStream
        at java.net.URLClassLoader.findClass(URLClassLoader.java:423)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:653)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:346)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:619)
        ... 3 more
Could not find the main class: net.rim.device.codesigning.keytool.KeyTool.  Program will exit.

 

 

I searched and apparently I'm the only one with this issue. Any ideas?

Please use plain text.
Developer
jffurlan
Posts: 1,003
Registered: ‎01-16-2011
My Device: PlayBook (sim)
My Carrier: Rogers

Re: More Code Signing Issues

Do you have the latest version of Java installed?
- If you like my response/post, or it helped you find an answer you were looking for, please provide a Kudo - white star to the bottom right of this post. -
- Please use the search bar at the top, or check out the PlayBook FAQ's for help getting started -
- Hockey DrillBook -
Please use plain text.
Developer
ajerman
Posts: 101
Registered: ‎03-18-2011
My Device: Playbook Simulator
My Carrier: AT&T

Re: More Code Signing Issues

[ Edited ]

 


jffurlan wrote:
Do you have the latest version of Java installed?

Wow, I'm an **bleep**. I'm used to always keeping my computers up to date, but I'm at work and they auto install all that stuff, but the version they auto install is apparently old (which I should have expected). Updated and it worked fine. Thanks for the simple solution.

 

Edit: Haha, this board edits some weird words.

Please use plain text.
Developer
jffurlan
Posts: 1,003
Registered: ‎01-16-2011
My Device: PlayBook (sim)
My Carrier: Rogers

Re: More Code Signing Issues

No worries. I didn't have java defined in my path so I'm glad it was something simple like this!
- If you like my response/post, or it helped you find an answer you were looking for, please provide a Kudo - white star to the bottom right of this post. -
- Please use the search bar at the top, or check out the PlayBook FAQ's for help getting started -
- Hockey DrillBook -
Please use plain text.
Regular Contributor
fgoyti
Posts: 70
Registered: ‎06-15-2011
My Device: Bold 9900
My Carrier: Bell Canada

Re: More Code Signing Issues

Thank you!  I can't believe they don't do a check for your java version.  I thought 1.6 was the latest.... guess not!  But really... I shouldn't *need* to care, the install should check this for me

Please use plain text.