Jakarta - A powerful magnitude 6.5 earthquake struck the island of Java in Indonesia just before midnight on Friday, with authorities reporting three deaths and damage to hundreds of buildings.
The US Geological Survey said the epicentre of the quake was located at a depth of 92 km (57 miles), about 52 km southwest of Tasikmalaya.
Indonesia's national disaster management agency said the quake activated early tsunami warning systems in the south of Java, prompting thousands to evacuate from some coastal areas, but no tsunami was detected.
Tremors were felt in central and west Java.
Sutopo Purwo Nugroho, a spokesperson for the disaster agency, said in a press briefing on Saturday three people had been killed, seven injured and hundreds of buildings damaged, including schools, hospitals, and government buildings in West and Central Java.
Dozens of patients had to be helped to safety from a hospital in Banyumas and were given shelter in tents, he said.
He posted on his Twitter page photos of people scouring collapsed buildings.
Kanopi Bank Jateng di Kecamatan Karangkobar Banjarnegara mengalami kerusakan akibat gempa 6,9 SR. pic.twitter.com/4PZN3MjUDr
Kerusakan bangunan di RSUD Banyumas. Tembok dan plafon rusak. Lebih dari 50 pasien dievakuasi keluar banguna pascagempa 6,9 SR. pic.twitter.com/RPJlwZbW51
Pasien di RSUD Banyumas dievakuasi keluar bangunan akibat gempa 6,9 SR. pic.twitter.com/yzTWMfZBTB
The quake swayed buildings for several seconds in the capital Jakarta. Some residents of high rise apartment buildings in central Jakarta quickly escaped their apartments, local media reported.
Indonesia's meteorology and geophysics agency said a magnitude 5.7 quake early on Saturday also struck south of West Java. It said the quake did not have tsunami potential.
Java, Indonesia's most densely populated island, is home to more than half of its 250 million people.