Villagers living on Merapi's fertile slopes were advised to stay 5km away from the crater's mouth and should be aware of the danger posed by lava, Indonesia's Geology and Volcanology Research Agency said.
Merapi's last major eruption in 2010 killed 347 people.
The 2968m peak is near Yogyakarta, an ancient city of several hundred thousand people embedded in a large metro area. The city is also a centre of Javanese culture and a seat of royal dynasties going back centuries.
This latest eruption sent hot ash 1000m into the sky, and the searing clouds of gas traveled up to 3km down its slopes several times, the country's geology agency said on its website.
Mount Merapi is the most active of more than 120 active volcanoes in Indonesia and has repeatedly erupted with lava and gas clouds recently.
The Volcanology and Geological Hazard Mitigation Centre did not raise Merapi's alert status, which already was at the second-highest of four levels since it began erupting last November.
Indonesia, an archipelago of 270 million people, is prone to earthquakes and volcanic activity because it sits along the Pacific "Ring of Fire," a horseshoe-shaped series of seismic fault lines around the ocean.