The prime minister visits an Australian-funded school built after the 2004 Indonesian tsunami

'You can achieve anything you put your mind to in Indonesia,' Mr Morrison told the students.

The students in Islamic Ethics did not know who they were going to meet.

The children of Year 7 at SMPN 2 Babakan Madang School, outside Jakarta, patiently waited for the visit of a man who turned out to be Australian Prime Minister Scott Morrison.

His school on the hillside was built with $ 206,000 of Australian aid money, and now teaches more than 400 children from years seven through nine.

The SMPN 2 school was built with $ 206,000 of Australian aid money.


Mr. Morrison told them a story about a boy who grew up in a school like theirs and then started his own business and then became president Joko Widodo.

"You can achieve everything you set your mind to in Indonesia," Morrison said Friday.

"You must feel very proud to have a great president and live in such a successful country."

The school is one of 2700 that Australia built more than 10 years ago, as part of John Howard's response to the 2004 boxing day tsunami that devastated parts of Indonesia.

The huge school building program is over, and now Australia's aid efforts are focused on improving standards and teaching skills.

Director Hariyani said that before the school was built, local children had to travel to another school further away to continue their education.

"It means saving money, because previously they had to spend a lot of money for transportation," he told AAP through an interpreter.

A plaque marks Australia's contribution to this small community of hillside villages, a story that was repeated 2700 times around the nation of 270 million people.

Morrison met with President Widodo in a presidential palace on Friday afternoon.