Aid trickled in yesterday for survivors of an earthquake that killed more than 5,000 people on Indonesia's Java island, but tens of thousands of homeless foraged on their own in heavy rain for food and shelter.

Many survivors who were injured or whose homes were destroyed by the quake prepared to spend a third night in the open on the grounds of hospitals and mosques or in makeshift shelters beside the rubble of their houses.

The 6.3 magnitude quake's official death toll reached 5,136, according to the government's Social Affairs Department, though the governors of the two affected provinces, Central Java and Yogyakarta, put the figure at a lower 4,395.

The tremor early on Saturday was centred just off the Indian Ocean coast near Yogyakarta, the former Javanese royal capital.

Government figures put the number of injured at 2,155, but the United Nations Children's Fund (Unicef) said there were 20,000 injured and more than 130,000 homeless, of which 40 per cent are children.

Hospital lists of the dead also showed children and old people, who had a harder time scrambling from houses as they collapsed, as disproportionately represented among the victims. Those who survived were meanwhile struggling to get by.

In the hard-hit Bantul area of the island, Sutrisno, carrying his 13-month-old baby son, said his village had been reduced to rubble. He has been living in a tent since Saturday.

"Food is still hard to get, aid is still lacking... I don't know when help will come," he told Reuters.

Government and aid groups say shelter and clean water are key. The United Nations will ship three 100-bed field hospitals, tents, medical supplies and generators in the next three days.

Indonesian President Susilo Bambang Yudhoyono, who moved his office temporarily to Yogyakarta soon after the calamity, vowed that all relief funds would be spent on quake victims and said he had warned government officials against pocketing aid themselves.

"I have asked (officials), and this has been implemented, that we must maintain transparency and accountability. Don't misappropriate one dollar... not even a single rupiah that is for the quake," he told a news conference in Yogyakarta. His government has set aside relief funds of 100 billion rupiah ($10.86 million) from now till August. A year of reconstruction and rehabilitation will begin after August, costing the government 1.1 trillion rupiah, he added.

Vice President Jusuf Kalla announced that survivors would be given 200,000 rupiah ($21) each for clothes and household items, while families would get 12 kg of rice. People will also be compensated for damaged homes.

Yogyakarta's provincial secretary, Bambang Susanto Priyohadi, said the pace of aid needed to be stepped up.

"When I checked this morning, the amount is very minimal," he said. "For such a large number of victims, we at least need 5,000 tents. At the moment we only have less than 100."

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.