I have created two Blackberry project in Blackberry Java Plug-in for Eclipse, i.e. MyProjectApp(set as application project) and MyProjectLib(set as Library project). Now I have created a simple MainScreen class like below:
public class SampleScreen  extends MainScreen {
    public SampleScreen (){
        RichTextField topbar = new RichTextField("hello world");
        add(topbar);
    }
}
Now I export MyProjectLib as Jar file and add the same in MyProjectApp as external Jar. Now I want to fire the SampleScreen using this:
public class MyProjectMain extends UiApplication{
     public static void main(String[] args) {
         MyProjectMain theApp = new MyProjectMain();       
        theApp.enterEventDispatcher();
    }
    public LangHostMain(){        
        // Push a screen onto the UI stack for rendering.
         pushScreen(new SampleScreen());
    }
}
It is giving following error:
Module 'MyProjectApp' has verification errors. Error starting MyProjectApp: Module 'MyProjectApp' has verification errors.
But if I moved the SampleScreen class to MyProjectApp, it is working fine. What is problem in exporting the Jar and use it? What type of Verification is needed?