[ajug-members] multiple jar versionsfor one application

Eugene Thompson vttoonses at gmail.com
Thu May 1 10:56:08 EDT 2008


Chris,

I'm sure I'm missing something, but there seems to be some practical
issues with what you are trying to do. First, how would the compiler
or jvm know which version of the class you wish to instantiate each
time? Second, you would need to have multiple locations where the jar
file was stored so you didn't overwrite one with another.

Why would you not just use inheritance to solve this issue? Then you
could just place the sub-version of the WorkerBee class
(WackyWorkerBee.class) in the same jar. Do you not have access to
these jars? 3rd party? And you want to use both implementations? There
might be a way to solve this problem in a more traditional manner. Can
you give more context for the issue?

Gene

On Thu, May 1, 2008 at 10:25 AM, Chris Abney <Chris.Abney at theice.com> wrote:
> Does any one know of a good way to access multiple versions of the same
>  Jar file from one application.
>
>  For example:
>
<snip>
>
>  Chris Abney
>
>
>  _______________________________________________
>  ajug-members mailing list
>  ajug-members at ajug.org
>  http://www.ajug.org/mailman/listinfo/ajug-members
>



More information about the ajug-members mailing list