Although there were attempts in the 1580s to establish also Faculties of Law and Medicine, they failed due to lack of financing. While Canon law was read at the Faculty of Theology since 1667, it was especially the Moravian Nobility, which pursued establishment of secular Professorate of Law in 1679 by a decree of Emperor Leopold I. The first Olomouc professor of law was Karel Ferdinand Irmler. The secular legal studies faced very strong opposition from the Jesuits: initially the professors taught at private premises, while later the lectures were held at the Olomouc Court of Law. Large number of Emperors' interventions was needed to secure continuation of legal studies in following decades. Since 1709 the Olomouc University law professors were appointed directly by the Emperor, in 1714 the Jesuits were forced to accept secular legal lectures within the university grounds. The situation improved after establishment of the Academy of Nobility in 1725 (law professors taught at both the university and academy). In 1732 Olomouc became the first law school in the Habsburg monarchy to teach Fief and Public law at an independent department. Later, in 1755, the lectures were extended to cover also international and natural law. In 1766 the first non-Jesuit University Rector was appointed – the professor of law Johann Heinrich Bösenselle.