views:

5230

answers:

1
+4  Q: 

JRE on Android

This might sound like a stupid question, but google didn't help me.

Is there a JRE available for Android? If so which version is it? Are there any major features missing?

If not does that mean all java apps need to be recompiled for Dalvik to work on the Android?

Update; Will there ever be JRE available for the Android?

+6  A: 

No, there is not. Google did create a completely different runtime for Android, where the base classes are completely different ( albeit compatible )

It uses Java as the language ( syntax ) but not the Java platform.

You can learn about the Android platform here.

From that page:

Android includes a set of core libraries that provides most of the functionality available in the core libraries of the Java programming language.

Read in bold "most".

So, although they look similar, they are not the same.

OscarRyz
So does that mean that any existing Java Applications need to be specificly compliled for Dalvik for them to work (as long as the functionality that is in the initial java Application is part of the **most** in the above quote ;) )
hhafez
That's right. But according to http://stackoverflow.com/questions/214615 there's a tool "dx" to translate java bytecode to Dalvik already, so It shouldn't be that hard.
OscarRyz