An earthquake of magnitude 6.2 struck Java, Indonesia on Thursday, the European-Mediterranean Seismological Centre (EMSC) said. The quake was at a depth of 40 km (24.85 miles), EMSC said.