msc: New method to detect javaversion