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
ingvar_e
Posts: 551
Registered: ‎10-31-2009
My Device: Torch 9800, Bold 9700
Accepted Solution

Use library for shared code

I have followed instructions on how to use a library and import a jar file, see thread

 

"Creating a library in the Blackberry JDE" 

 

http://supportforums.blackberry.com/t5/Java-Development/Creating-a-library-in-the-Blackberry-JDE/m-p...

 

Import works, definition works, create a new instance of the class work, no compilation errors.

 

When I load the cod file for the main class that imports, defines and uses the RTStorage class I get the following messages

 

Searching installed codfiles for alias 'RTStorage'
Searching uninstalled codfiles for alias 'RTStorage'
Module 'RTStorage' not found.VM:LALEr=7,h=5435,c=Testdriver

 

And the main class is not loaded to "Downloads"

 

So importing the jar file is not good enough. Asks for a cod file???

 

If everything seems to be under control, you're just not driving fast enough
-Mario Andretti-
Developer
Developer
CMY
Posts: 1,123
Registered: ‎02-10-2009
My Device: 8130 / 8350 / 9530 / 9550 / 9850 / PlayBook

Re: Use library for shared code

Did you load the library as well? The library cod is not automatically loaded to a real device, if this is the simulator, make sure it is active.

Developer
ingvar_e
Posts: 551
Registered: ‎10-31-2009
My Device: Torch 9800, Bold 9700

Re: Use library for shared code

Fresh head in the morning. Started out new and found a stupid error in the main class.

works fine now

If everything seems to be under control, you're just not driving fast enough
-Mario Andretti-