Well, what's strange here is that Android's Dalvik JVM is being less strange than Sun's, but not enough less strange to avoid confusing you.
Sun doesn't have a representation of the bootstrap classloader. It's an implicit part of the JVM, and if you ask for the classloader of a class that was loaded by the JVM, you'll get null. The ClassLoader is loaded by the bootstrap classloader, which may explain why it's this way. Android does the same, except it gives you an object that represents and presumably interfaces to the bootstrap classloader. I've always thought Sun should have done this, too. I don't know just when the bootstrapped bootstrap classloader is loaded and installed, but it would seem to be later than the log messages you're looking at. On Mar 12, 2:14 am, allstars <[email protected]> wrote: > hello > if i try to load libwebcore or libmedia from my app > it will fail because the system libs has been loaded by zygote > and by JNI spec > *The same JNI native library cannot be loaded into more than one class > loader.* > > but from the log and the code (dalvik/system/VMStack) > the bootstrap class loader ( the ClassLoader of Zygote) is null > although the Class.getClassLoader() can get the instance of the > bootstrap class loader > > Isn't it strange here? > libwebcore.so is loaded by a classloader before which is a null object > > thanks -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

