Welcome to the Official BlackBerry® Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

BlackBerry Analytics Service

Reply
BlackBerry Development Advisor
twindsor
Posts: 269
Registered: 07-15-2008
My Carrier: Bell

Re: Will it work with more than one app?

If you choose to export the jar file in the Build Options (as documented) using the Eclipse Plugin, it works fine. But, if you neglect to check off the export option, you end up with that message.

 

I checked out both command lines used by Eclipse and they differ by a single character. The difference is between importing the jar, and including the jar.

 

In the broken line, the Analytics Jar is imported because it's joined to the net_rim_api.jar in the import statement with a semi-colon, and the Eclipse compiler output is the actual source for rapc:

 

-import=C:\Eclipse1.3b15\plugins\net.rim.ejde.componentpack6.0.0_6.0.0.30\components\lib\net_rim_api.jar;C:\Documents and Settings\twindsor\workspace1.3b15\BBAnalyticsTest\lib\AnalyticsServicev0.9Beta.jar C:\Documents and Settings\twindsor\workspace1.3b15\BBAnalyticsTest\bin

 

But, in the working version, the semi-colon is now a space and the jar is being included as well as the Eclipse compiler output:

 

-import=C:\Eclipse1.3b15\plugins\net.rim.ejde.componentpack6.0.0_6.0.0.30\components\lib\net_rim_api.jar C:\Documents and Settings\twindsor\workspace1.3b15\BBAnalyticsTest\lib\AnalyticsServicev0.9Beta.jar C:\Documents and Settings\twindsor\workspace1.3b15\BBAnalyticsTest\bin

 

See if you can make BB Ant do that (assuming I'm accurate about what it's doing now).

Tim Windsor
Application Development Consultant
Please use plain text.
Developer
dnepr
Posts: 723
Registered: 03-12-2009

Re: Will it work with more than one app?

Been a while, but I got around to implementing this.

It works fine with BB-Ant-Tools and multiple apps are able to run without any issues.

In my case I packaged the JAR, (Not imported via Ant tools) and it worked fine.

So in the essence, what Tim said is spot on.
Please use plain text.