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

Java Development

Reply
Developer
vjkmr
Posts: 78
Registered: ‎05-17-2012
My Device: 9900 - OS 7.0 Torch device
My Carrier: Reliance

Advertising service - NoClassDefFoundError

Hi All,

 

I have used ForPost_6.0.0 jar file to build the application and I have used the same code given in demo like below

Banner bannerAd = new Banner(31848, null);
        bannerAd.setMMASize(Banner.MMA_SIZE_EXTRA_LARGE);
        add(bannerAd);

 

Now I am trying to run the application in 9810 device. Here I am getting the 'NoClassDefFoundError'. Am I doing anything wrong ? or Should I have anything extra in device (like service/data plans. )?

 

Please suggest me to integrate add service in my application.

Please use plain text.
BlackBerry Development Advisor (Retired)
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: Advertising service - NoClassDefFoundError

Make sure you add the Ad Service library to your list of exports otherwise it cannot be referenced from your compiled application.

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.