Is it possible to share a Java library (in the form of a jar file) between Android and MIDP projects? If that is the case, which Java version should I c开发者_StackOverflow社区ompile with? The library does not use any Android or MIDP specific stuff.
No it's impossible, since Android and J2ME use different VM. Android's one called Dalvik VM and J2ME's KVM - so they're generating different bytecodes.
精彩评论