[1] A quick study, he was sent to seminary in Ljubljana and (in about 1738) Graz, where he was granted a master of liberal arts (Latin: magister artium liberalium) degree,[2] and became acquainted with the economic theories of the French physiocrats.
[2] He settled in Komenda in northern Carniola, where he established a school in 1751; the following year, he endowed a library,[3] which is still extant and comprises around 2,000 books on diverse subjects.
[4] Glavar was a supporter of poor students,[1] and a patron of the arts; he commissioned the painter Franc Jelovšek to decorate the beneficiary house and the parish church.
[6] In 1766, Glavar bought Lanšprež Castle (German: Landspreis) in Gomila near Mirna in the central Carniola,[2] where he kept an apiary with about 200 quite profitable hives.
These included the Pogovor o čebelnih rojih (Discourse on Bee Swarms) from 1776–78, notable as the first Slovene-language scholarly text; lost for almost two centuries, a copy was discovered and published only in 1976.