An aftershock measuring 5.1 magnitude was felt in Tasikmalaya about 20 minutes after the quake. Its epicenter was 138 km southwest of Tasikmalaya and 38 km beneath the seabed.
Reports from several West Java cities and district towns said people panicked due to the powerful quake.
'All people here panicked. I thought the roof was falling down,' Lia Amalia, a visitor at a shopping mall in Bogor district, about 60 km south of Jakarta, told detik.com online news service.
MetroTV reported from West java district of Cianjur that a number of homes were damaged following the quake, but there were no immediate reports of casualties.