It struck several hundred miles east of Jakarta, destroying buildings and causing fires. USGS. This AP story puts the current death toll at 2,500:
The magnitude 6.2 quake struck near the ancient city of Yogyakarta 250 miles east of the capital, Jakarta, around dawn as many people slept, causing death and damage in several nearby towns. ... Nine hours after the quake struck, the number of dead stood at 2,517, said Direvan, an official in the Social Affairs Ministry's task force office, with two-thirds of the fatalities occurring in the devastated district of Bantul.
"The numbers just keep rising," said Arifin Muhadi of the Indonesian Red Cross, adding that nearly 2,900 people were hurt.
Indonesia will have a hard time coping with this, so donations to relief organizations would be a good idea. Reuters has more current and detailed information. This is very close to Mount Merapi, which seemed to become more active after the quake.