JVM and Java API for microcontrollers