I think under the hood android does not support java bytecode. Instead it uses dex files which I presume contain bytecode for the Dalvik virtual machine. Possibly you can compile your jar to a dex file and load that dynamically.
On Sep 8, 8:45 am, CaryWang <[email protected]> wrote: > I have a jar file in my app local data "/data/data/application > packageName/test.jar". I want to load the class "com.test.abc" which > resides in my jar. I am using java.net.URLClassLoader to load the class. On > an non android environment the code works, on android it gives me this > exception "can't load this type of class file". > Do you know why is that ? > > -- > Cary -- 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

