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
gayatri
Posts: 86
Registered: ‎12-06-2012
My Device: Curve 8520
Accepted Solution

How can create Static library in Blackberry ?

Hi Friends,

I want to create one static library.can any one explain me ?

it's urgent 

Please use plain text.
Developer
simon_hain
Posts: 16,137
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: How can create Static library in Blackberry ?

what do you mean with "static"?
----------------------------------------------------------
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
Please use plain text.
Developer
gayatri
Posts: 86
Registered: ‎12-06-2012
My Device: Curve 8520

Re: How can create Static library in Blackberry ?

i want to share only jar file to end user 

Please use plain text.
Developer
peter_strange
Posts: 19,604
Registered: ‎07-14-2008
My Device: Not Specified

Re: How can create Static library in Blackberry ?

Please use plain text.
Developer
gayatri
Posts: 86
Registered: ‎12-06-2012
My Device: Curve 8520

Re: How can create Static library in Blackberry ?

i have created library same as given link, but when i am going to deploy it on device then i have to installed first my library then only i can use it on any application

 

is there any other way to deployment on device ? 

 

Please use plain text.
Developer
simon_hain
Posts: 16,137
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: How can create Static library in Blackberry ?

you can mark a library as "export" in the build tab, this includes it in the program.
otherwise the library has to be installed on the device for the application to work (if it depends on it).
----------------------------------------------------------
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
Please use plain text.
Developer
peter_strange
Posts: 19,604
Registered: ‎07-14-2008
My Device: Not Specified

Re: How can create Static library in Blackberry ?

Re-read the article and make sure you are asking for the right thing here. 

 

If you only want to share the jar file (which is what you said), then you are assuming that the user will build this into a cod file.  You can't install a jar onto a device - that will not run.  So you can't share a jar file with an end user - it will not help them. 

 

If an application depends on a shared library, then the application will not start until that library is available.  This is a problem that also faces BBM applications.  In that case you can create a proxy application that checks to see if the library is installed, and then downloads it if it is not.  But there is a fair amount of work involved in doing this. 

 

If this is your own library for your own application, then you can package the library cod and the application cod together. 

 

Anyway, review the article again, think about what you actually want to do, and see how it fits in the options given in the article.  If it is still not clear what you need to do, then please explain your situation and what you are trying to achieve. 

Please use plain text.
Developer
gayatri
Posts: 86
Registered: ‎12-06-2012
My Device: Curve 8520

Re: How can create Static library in Blackberry ?

i want to make a library ,which i can share with the end users.

currently i created library but that is shared library (like if library is not on device application will not work for lib)

so now what i want is -

i want to make a library so that i just shared my library jar file with end user ,and user should able to use it and run it on device.  

Please use plain text.
Developer
simon_hain
Posts: 16,137
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: How can create Static library in Blackberry ?

you can share the jar file with developers. for end users you need a signed cod file.
----------------------------------------------------------
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
Please use plain text.
Developer
gayatri
Posts: 86
Registered: ‎12-06-2012
My Device: Curve 8520

Re: How can create Static library in Blackberry ?

what about deplyoment on device.

i m doing signing. but with out installed library on device i can't run my application 

Please use plain text.