Common code for all JVM Targets