/jdalvikvm

Fork of android-dalvik-vm-on-java (https://code.google.com/p/android-dalvik-vm-on-java)

Primary LanguageJavaGNU General Public License v2.0GPL-2.0

jdalvikvm

Build Status Project Status

Fork of android-dalvik-vm-on-java (https://code.google.com/p/android-dalvik-vm-on-java)

'Pure' Java implementation of the Dalvik Virtual Machine. Allows you to load and execute dex files using the JVM

Usage

See: jdalvikvm-sample

  final byte[] dexByteCode = ... Loaded from dex file ...;
  final String absoluteMainClassName = "tutorial1.HelloWorld";
  final VirtualMachine vm = new VirtualMachine();
  vm.load(dexByteCode);
  vm.run(absoluteMainClassName, new String[0]);

Building

Repository is setup using SBT and should build and test with SBT

Testing

lib\dx.jar is included for testing the vm and is not required for the use of this DVM