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

Web and WebWorks Development

Reply
Developer
aserra
Posts: 63
Registered: ‎10-07-2009
My Device: Not Specified

Include .jar extension

Hi all,

 

I'm trying to implement a bluetooth gadget. The manufacturer let us a SDK with a .jar file to include in the blackberry app. I build a simple Java App including this .jar and run perfectly.

 

Then, now I need to build a java extension for the web widget app, but I don't know where I put the .jar for that the widget will load it.

 

I built other extensions and run correctly, I export src's to: \wcpc\device_templates , modify the WidgetConfigImpl.java and compile ok.

But now, the compile return error because need the manufacturer .jar and I don't know how to include this .jar in the extensions.

 

Any way to include it? I try somethings but it not be successful, like to put the .jar in the ext/ folder, and include in the eclipse plugin, …

 

Thanks

Please use plain text.
BlackBerry Development Advisor
tneil
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: Include .jar extension

Does the jar contain compiled .class files or .java source files?

 

have you written javascript extension wrappers around the java classes provided?

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Please use plain text.
Developer
aserra
Posts: 63
Registered: ‎10-07-2009
My Device: Not Specified

Re: Include .jar extension

The jar contain the private compiled .class files.

 

Yes, I have done others javascript extensions from java classes.

 

Please use plain text.