map_locate.java with errors