Is it possible to include a different JVM into an application and have the app run within this JVM rather than the Dalvik VM provided by Android?
I’m asking because Oracle’s ADF Mobile uses its own JVM both on Android and iOS but doesn’t specify exactly how they do it. It is supposed to be based on a J2ME CDC VM.
My colleague thinks they run it within the dalvik VM and add in the apk those libraries needed to achieve Java ME CDC specs.
If it were truly a completely seperate JVM then, theoretically, it should also be possible to include a Java EE JVM and toss some reusable business logic from backends in there right?
Yes, you can even add a support for C# in theory, meaning that you can add a CLR/CLI support, or whatever language or VM you like.
All the Android components are really modular and the entire OS is customizable, the problem is that this requires a lot of money, time, know-how and most-likely, patent-trolling.
click me for a youtube reply
this is from an official talk about Android.