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
Highlighted
Developer
Posts: 225
Registered: ‎09-29-2010
My Device: Limited Edition Z10, Playbook
My Carrier: Airtel
Accepted Solution

Error launching app with Ad Service

Hi 

 

 

I am integrating ad service to my app.

Right now I following documentation to create demo app for it.

 

I am receiving "java.lang.NoClassDef Found Error" as soon as I launch my app.

 

here is the code I am using :

package mypackage;

import net.rim.device.api.ui.UiApplication;

/**
 * This class extends the UiApplication class, providing a
 * graphical user interface.
 */
public class MyApp extends UiApplication
{
    /**
     * Entry point for application
     * @param args Command line arguments (not used)
     */ 
    public static void main(String[] args)
    {
        // Create a new instance of the application and make the currently
        // running thread the application's event dispatch thread.
        MyApp theApp = new MyApp();       
        theApp.enterEventDispatcher();
    }
    

    /**
     * Creates a new MyApp object
     */
    public MyApp()
    {        
        // Push a screen onto the UI stack for rendering.
        pushScreen(new MyScreen());
    }    
}

 Also seeing this warning

C:\Eclipse_BB\ads\For_Post6.0.0\net_rim_bbapi_adv_app.jar(net_rim_bbapi_adv_app-1.cod): Warning!: Import file is marked non-parseable
net.rimlib.blackberry.api.advertising.app.Banner: Warning!: No definition found

What I am missing here ???


I am building my app using OS 6.0

I have tried running the app on 9800 simulator and also on OS 7.0 device 9860

For both I am getting same error.

 

How can I test sample app on simulator and device?

 

I have posted same post here as well

http://supportforums.blackberry.com/t5/BlackBerry-Advertising-Service/Error-launching-app-with-Ad-Se...

But I think this is some java related issue.

Thanks

Abhinav Tyagi

Blackberry Z10-Limited Edition
Blackberry Playbook (won in free playbook offer)
My Apps : pAinT, HealthMeter, Shoot
Developer
Posts: 225
Registered: ‎09-29-2010
My Device: Limited Edition Z10, Playbook
My Carrier: Airtel

Re: Error launching app with Ad Service

Its working now

 

I was missing checking Order and Export the jar file 

Blackberry Z10-Limited Edition
Blackberry Playbook (won in free playbook offer)
My Apps : pAinT, HealthMeter, Shoot