Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7055341
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:44:12+00:00 2026-05-28T03:44:12+00:00

We write apps for contract – we have many apps out there, and they

  • 0

We write apps for contract – we have many apps out there, and they all use our library. But we have no control over when they are released, that is up to the clients, so they all have different versions of our library (which is always being added to).

I would like to know what the proper way to avoid using the same package name for the library in each project is? I trust this makes sense to the more seasoned BB devs here.

For my distribution builds, I refactor the library to use a unique package name for that project (usually by putting the client’s name into the package structure). But this adds time, trouble, and messes with eclipse’s svn clients. It seems totally wrong to do it this way (but it works).

There must be a proper way to do this, some tool or script even, since being forced to go down this path each time seems wrong. What is the right way to avoid this problem.


Explanation of Why this is a problem:

  • If you install many apps using the same package structure somewhere in them, then the device overwrites the packages. e.g. If I use com.ric.sdk as my library, then each app that uses my sdk will overwrite whatever version is there.

This is great if we only every upgrade. For us, some issues collide simultaneously, making a problem for us:

  1. We write apps for many different clients, and like to use our common code for each client.
  2. We are a new company, and our sdk is growing. Each app normally adds a few methods to some class or other. So each new app needs the newest sdk. The old apps will still work with the new sdk. The new apps will break with the old sdk.
  3. We do not have release control, so cannot be sure that all apps out there always have the latest sdk.

e.g. we have a radio streaming app which was created 8 months ago. And a video streaming app (unrelated client) from 3 months ago. A vehicle tracking app for this month. If someone installs the tracking app, and then after finds & installs the radio app, the new sdk is overwritten by an old one, and the tracking app breaks because it is not compatible with the old sdk.

(this question deals with the same issues: Do apps downloaded from App World share projects?)

We have learnt the lesson and now refactor the sdk before the final build of each app, to a unique name e.g. radio.ric.sdk or video.ric.sdk.

But this is a horrible process, messes with the svn, wastes time, allows for human error etc – is there a tool that does this for me? I do not believe that we are doing it the right way.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T03:44:12+00:00Added an answer on May 28, 2026 at 3:44 am

    jarjar is the tool you want to use. It allows you to take a jar file and rename all the classes so that they don’t conflict with other users of the jar file. In your case, you would add the client’s name to the package. The short description of jarjar:

    Jar Jar Links is a utility that makes it easy to repackage Java
    libraries and embed them into your own distribution. This is useful
    for two reasons:

    You can easily ship a single jar file with no external dependencies.
    You can avoid problems where your library depends on a specific
    version of a library, which may conflict with the dependencies of
    another library.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There are now so many ways to write windows apps, win32, MFC, ATL, .NET,
I have decided to learn Silverlight, but apart from knowing how to write apps,
I have just started learning to write apps for android using Eclipse. Where can
i have the following code using Nhibernate.Linq var apps = Session.Linq<History>().OrderByDescending(r => r.LastUpdated).Take(50); Console.Write(apps.Count());
I'm mainly write iPhone apps but am familiar with some desktop Mac authoring. I
is it possible to write Django apps, for example for internal/personal use with existing
When I write Android apps, I love the Toast feature. Is there a way
I use IntelliJ IDEA to write Android apps, and use the DDMS Windows application
I have seen questions on my Facebook group about 'Can I write Nokia apps
Is there a way to write WinRT apps in Windows7 & VS2010? Some SDK

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.