You assume that JVM is slow, yes? That's not always the case. Interestingly, there's cases where JVM applications run just as fast as if not faster than native code. This blows my mind, as a C++ programmer myself.
http://codexpi.com/java-vs-cpp-performance-comparison-jit-co...
http://stackoverflow.com/questions/5641356/why-is-it-that-by...
http://beautynbits.blogspot.com/2013/01/performance-java-vs-...