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
Posts: 73
Registered: ‎05-03-2011
My Device: 9550
My Carrier: verison

how to deploy third party lib in blackberry device?

I develop some code with third party lib in jar type. when I load it in simulation, it throw exception in runtime, seems that the third party lib module has not install in blackberry simulator. how to solve it, I only have jar file which have .class file in it.

Author of pairs and Gradient
New Contributor
Posts: 4
Registered: ‎05-17-2011
My Device: Bold 9700
My Carrier: Vodafone

Re: how to deploy third party lib in blackberry device?

I went through a similar issue.

 

As far as I know, you first need to make sure that this jar file is j2me compatible..

I mean that this jar file could be designed for j2se (Java Desktop applications). If this is the case then it is very likely that it will be using packages that exist in j2se but not in j2me..

 

A possible solution could be:

Try to get the source code, and then try to change it so that it would be j2me compatible..

Developer
Posts: 73
Registered: ‎05-03-2011
My Device: 9550
My Carrier: verison

Re: how to deploy third party lib in blackberry device?

I am sure the lib is compatible with j2me, and I have compiled the project without error.
Author of pairs and Gradient
Highlighted
Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: how to deploy third party lib in blackberry device?

Have you converted the jar to a cod and loaded it to the SImulator?

 

Search the forum for instructions on converting it if not. 

Developer
Posts: 73
Registered: ‎05-03-2011
My Device: 9550
My Carrier: verison

Re: how to deploy third party lib in blackberry device?

I do not convert lib jar to cod, I think there is a way to compile lib .class file to application cod file.
Author of pairs and Gradient