Skip to main content
Participating Frequently
March 24, 2011
Question

Packaging a .bar file for the BlackBerry Tablet (Playbook) Simulator Using Command Line.

  • March 24, 2011
  • 1 reply
  • 1435 views

Hi there, I've been trying to deploy one of my AIR apps on the BlackBerry Tablet (PlayBook) Simulator and and have run into a problem packaging the .bar file using the command line.  I started this off by reading the article at:

http://www.adobe.com/devnet/devices/articles/blackberry_playbook_battery.html

I followed some of the steps there, but found this article on how to package my files using a command line more helpful (the Adobe article doesn't even explain how to package the .bar file using the command line):

http://supportforums.blackberry.com/t5/Tablet-OS-SDK-for-Adobe-AIR/Compile-and-Debug-without-Flash-Builder-Using-a-Command-Line/ta-p/628675

Everything was going great until I went to compile my application and received the following error:

Exception in thread "main" java.lang.NoClassDefFoundError: com/qnx/bbt/airpackag
er/BarAirPackager
Caused by: java.lang.ClassNotFoundException: com.qnx.bbt.airpackager.BarAirPacka
ger
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: com.qnx.bbt.airpackager.BarAirPackager.  Program
will exit.

Has anyone run into this issue when trying to package a .bar file for the BlackBerry Tablet (Playbook) Simulator?  I've tried using a SWF published in CS5 and CS4.

This topic has been closed for replies.

1 reply

Participating Frequently
April 5, 2011

Just thought I'd reply to my own post, in case someone else runs into this problem.  Make sure you have the latest and greatest versions of the JDK and JRE installed on your system, in addition to the requirements listed in BlackBerry's list of installs:

http://us.blackberry.com/developers/tablet/adobe.jsp