Resolving java.lang.UnsupportedClassVersionError exception