To port your kvm
you should read the KNI specification 1.0 which comes with the
Java 2 Platform, Micro Edition Connected Limited Device Configuration Version 1.1 Reference Implementation
here in chapter 7 you'll find how call native functions
(example call a helloworld in c )
This should help and good luck for compiling the kvm (if you do this under windows this could help (
page1 ;
page2)