Two earthquakes rocked parts of Indonesia's Java Island early Monday, injuring at least four people and damaging buildings, officials said.

Wijanto, an official at Meteorological and Geophysics Agency in Jakarta, said the first quake with a magnitude of 4.9 occurred at 1:36 a.m., while the second one with a magnitude of 4.5 hit at 6:31 a.m.

Rusnaedi, a spokesman at the Situbundo Regency office in the province of East Java, said the two quakes affected villages in two districts -- Asem Bagus and Banyu Putih.

"Three people suffered minor injuries and one person suffered broken bones. He was hit by a collapsing building," Rusnaedi said.

He also said that hundreds of houses and buildings, including school and public buildings, sustained light damage, and a few others collapsed.

According to a local television station, the quake also damaged a small bridge near the town of Banyuwangi, also in East Java.