A magnitude 6.4 quake has hit Indonesia's West Java area at a depth of 118 kilometres, sending people running out of buildings.
The country's geophysics agency BMKG said the quake, which struck on Saturday, has no tsunami potential.
The quake was felt in the capital Jakarta, more than 280km from the epicentre.
There were no immediate reports of damage or casualties and authorities said they were making checks, especially in Garut, the town closest to the epicentre.
Some residents of West Java cities said on social media they felt the quake strongly.
A Reuters witness in Bandung, the capital of West Java province, said guests of a hotel ran out of the building but had since returned inside.
Dwikorita Karnawati, head of BMKG, said there were no aftershocks recorded so far but warned people to be on alert.
"It is best to remain cautious for now," she told local news channel KompasTV.
Last month a shallow quake of 5.6 magnitude hit West Java's Cianjur, killing more than 300.
Australian Associated Press
Sign up for our newsletter to stay up to date.