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
New Contributor
jhned
Posts: 3
Registered: ‎03-16-2011
My Device: Playbook SDK
My Carrier: Developing SDK

Can't get sample application to run in Simulator

Every time I try to run the sample application from BlackBerry on Adobe Flash Builder, I'm getting this error:

 

"Error occurred while packaging the application:

Packaging failed:1
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:676)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:317)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:280)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:375)"

 

Any idea what's going on? I've already updated my java to 1.6, but that didn't fix it. I am also on a Mac computer.

 

Thanks!

 

Josh

Please use plain text.
BlackBerry Development Advisor
elena_laskavaia
Posts: 417
Registered: ‎10-27-2010
My Device: PlayBook

Re: Can't get sample application to run in Simulator

You have to install java 1.6 to use SDK

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

Re: Can't get sample application to run in Simulator

Any chance you're using dropbox to sync your files?
- 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.
Contributor
moseslecce
Posts: 31
Registered: ‎01-20-2011
My Device: Torch 9800
My Carrier: Bell

Re: Can't get sample application to run in Simulator

Launch finder and go to Applications/Utilities and then run Java Preferences.

 

From there in the General tab you should see a java version 1.6.  Drag this to the top of the list so that it will be the default used.

 

Please use plain text.