At least two people have been killed following a strong 6.5-magnitude earthquake on Indonesia’s main island of java.

According to the US geological survey the quake struck at a depth of 91 kilometres just outside the coastal town of Cipatujah on Java Island late Friday.

The tremor was felt across the island including in the Capital Jakarta, some 300 kilometres from the Epicentre.

A 62-year-old man in Ciamis and an 80-year-old woman in Pekalongan city were killed when the buildings they were in collapsed, national disaster mitigation agency spokesman Sutopo Purwo Nugroho said.

A hospital in Banyumas suffered damaged ceilings, cracked walls and leaks to oxygen pipelines, forcing about 70 patients to be moved to temporary shelters.

At least a hundred houses were damaged across west java and central java provinces, the national disaster mitigation agency said.

The agency was still evaluating the impact of the disaster and urged people to be cautious and stay alert.