A magnitude-5.4 earthquake struck the Java island in Indonesia at a depth of 45 km on Sunday, according to the European Mediterranean Seismological Centre (EMSC).