Tuesday, July 27, 2010

[android-developers] Re: Possible to over-ride default Android libraries?

Thanks for the clarification Dan.

Might it be possible to selectively prevent platform libraries from
loading and prevent the conflict?

I have to think this situation exists with Java in other environments
- libraries exist on the platform and you wish to include newer
versions with updated features. No way to address such a problem?

On Jul 25, 6:45 pm, DanH <danhi...@ieee.org> wrote:
> It's not the classpath he needs to set, it's the system classpath.
> Different beast.
>
> On Jul 25, 8:03 pm, Indicator Veritatis <mej1...@yahoo.com> wrote:
>
>
>
> > If worse comes to worse, you could give up on doing the build in
> > Eclipse, do it in Ant, and set CLASSPATH yourself at build time, and
> > set it in the jar for runtime (in the manifest).
>
> > On Jul 23, 6:07 pm, DanH <danhi...@ieee.org> wrote:
>
> > > What you're really asking is whether it's possible tooverridethe
> > > system classpath.  I don't know the answer, but that's the question.
>
> > > On Jul 23, 2:08 pm, Toby <tob...@gmail.com> wrote:
>
> > > > I'm working on a SMIME application to decode .p7m signed and encrypted
> > > > messages.  I've got a small Java app written using the latest Bouncy
> > > > Castle libraries and everything is working great.  I ran into some
> > > > issues moving the code into an Android app.  I've included the newest
> > > > BC libraries in the app, but my guess is my problems...
>
> > > > 07-23 12:02:23.701: ERROR/AndroidRuntime(654):
> > > > java.lang.NoSuchMethodError:
> > > > org.bouncycastle.asn1.ASN1InputStream.readTagNumber
>
> > > > ...are related to class loading since many older versions of these
> > > > classes exist on the platform.
>
> > > > 07-23 12:02:19.151: INFO/dalvikvm(641): DexOpt: not resolving
> > > > ambiguous class 'Lorg/bouncycastle/asn1/ASN1InputStream;'
>
> > > > 07-23 12:00:20.671: DEBUG/dalvikvm(567): DexOpt: 'Lorg/apache/harmony/
> > > > misc/SystemUtils;' has an earlier definition; blocking out
>
> > > > Is it possible to selectivelyover-ridepackages and force the JVM to
> > > > use the included libraries in the application?  This may be an
> > > > entirely futile effort and completely the wrong approach but I've
> > > > exhausted the search boxes in every forum i can find so I thought i'd
> > > > toss it out here.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment