Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can the android JVM run on a PC also?

Tags:

java

android

Can the Android JVM run on a PC also?

or is it limited to working on a mobile device only?

From what I understand, when you develop using eclipse it is emulated, not running the actual jvm correct?

like image 452
user275475 Avatar asked Feb 17 '10 19:02

user275475


1 Answers

Yes and no. The Android VM is actually called Dalvik VM. It executes dalvik executables (dex) which are normally packaged as Android Packages (apk) file. The dex files are created from Java byte code files (output of a java compile, .class files) which run on a regular jvm. Currently the Dalvik VM runs on ARM and MIPS based processors. When you talk about running on a PC I assume you are talking about a x86 based computer. In this case you need to use an emulator to run the vm. The standard emulator that is shipped with the Android SDK uses qemu (qemu site) to run emulator the standard arm processor.

There is also a porting effort to x86 under way but the most common way currently is emualtion.

In terms of android running on netbooks it all comes down to the processor again...

Also keep in mind that if you want to run Android applications on a PC you need more than just the VM. You basically need to run the whole linux stack (e.g. including video codecs and so on). The easiest way to do that is to run an emulator.

like image 185
Manfred Moser Avatar answered Sep 23 '22 14:09

Manfred Moser