After an education at the parish schools of Cruden and Ellon, at of fifteen he entered the Jesuit college at Braunsberg, East Prussia, then part of Poland; however, his character did not tolerate well the strict and sombre way of life at the school, and he soon decided to return home.