A strong earthquake shook parts of Indonesia’s main island of Java on Friday, damaging several buildings and prompting panic.

There were no immediate reports of casualties.

The US Geological Survey said the magnitude 5.8 quake was centred 84 kilometres southwest of Bambanglipuro, a village in Bantul regency of Yogyakarta province, at a depth of 86 kilometres.
5.8 magnitude earthquake shakes Indonesia's main island, damaging several buildings
A 5.8 magnitude earthquake has shaken Indonesia’s main island. (Supplied)

Indonesia’s National Disaster Management Agency said the undersea earthquake damaged at least 15 houses, two schools, a health facility and a government office.

Television reports showed local residents in the special province of Yogyakarta and its neighbouring provinces of Central Java and East Java panicking as houses and buildings swayed for several seconds.

Some places ordered evacuations, sending streams of people into the streets.

Indonesia’s Meteorology, Climatology and Geophysical Agency said there was no danger of a tsunami but warned of possible aftershocks.

The agency measured a preliminary magnitude of 6.4.

5.8 magnitude earthquake shakes Indonesia's main island, damaging several buildings
Locals were panicking as houses and buildings swayed for several seconds. (Supplied)

Variations in early measurements of quakes are common.

Yogyakarta is an ancient centre of Javanese culture and the seat of royal dynasties going back centuries.

It is home to the 9th-century Borobudur — nine stone tiers stacked like a wedding cake and adorned with hundreds of Buddha statues and relief panels — and the towering Hindu temple complex of Prambanan, both are UNESCO World Heritage sites and Mount Merapi, the country’s most active volcano.

In 2006, a 6.4 magnitude earthquake in Yogyakarta killed more than 6200 people and injured more than 130,000 others, but caused only minor damage to the two temples.

The country of more than 270 million people is frequently struck by earthquakes, volcanic eruptions and tsunamis because of its location on the arc of volcanoes and fault lines in the Pacific Basin known as the “Ring of Fire.”

In 2004, an extremely powerful Indian Ocean quake set off a tsunami that killed more than 230,000 people in a dozen countries, most of them in Indonesia’s Aceh province.

Sign up here to receive our daily newsletters and breaking news alerts, sent straight to your inbox.
You May Also Like

Mets still far from ‘hitting on all cylinders’ despite MLB-best record

The Mets own the best record in the major leagues (18-7) behind…

Knicks’ Game 3 report card: Ball movement and stars spark win

Grading the Knicks’ 118-116 Game 3 win over the Pistons in Detroit…

Trump dines with major donors during $1 million-a-plate fundraiser at Virginia golf course

President Trump dined with major donors at his Northern Virginia golf course…

‘Smug’ George Clooney blasted by Megyn Kelly in explosive 11-minute rant

Megyn Kelly blasted ‘smug’ George Clooney for his ‘naked partisanship’ in an explosive…