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
New Developer
Posts: 26
Registered: ‎06-24-2009
My Device: Not Specified
Accepted Solution

Library problem

hi,

 

I made my own library and lets say its Engine.cod. I have multiple apps that use this library.

 

If I installed app1 on my device, the cods app1.cod and Engine.cod would be loaded onto the BlackBerry it's running. First application with library in device is working fine.

 

Then when I install app2, app2.cod is loaded and Engine.cod it installed but when i try to run app2. i got this error message,

 

"Error Starting Class 'com.app.engine.Constants' multiply defined."

 

Constants file is present inside Engine.cod.

 

Because of this error i'm not able to run second application with my own library in device.

 

Please help me to resolve this issue.

 

Thanks,

Reddy

 

 



Developer
Posts: 16,992
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Library problem

is it persistable?

----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Highlighted
New Developer
Posts: 26
Registered: ‎06-24-2009
My Device: Not Specified

Re: Library problem

Yes

Developer
Posts: 16,992
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Library problem

persistable classes cannot be shared in libraries. remove the persistable and it should work

----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter