Gligorije Trlajić was educated in Segedin, Buda, and Pesth, and studied law at the University of Vienna before he entered the bureaucracy in the department of justice in which he rose rapidly to be assistant to the solicitor-general in Vienna.