Gabriel Gruber, born in Vienna, became a Jesuit at the young age of 15, in 1755 and did most of his formation and studies in Austria: Latin and Greek in Leoben, theology, philosophy and mathematics in Graz, languages in Vienna, mathematics in Trnava, Slovakia, and again theology in Vienna. In 1766, he was ordained priest in Graz.
Gruber was an expert in hydrotechnology and architecture, and had also a basic knowledge of navigation and the history of seamanship. In early life, Gruber was a fanatical builder of model ships, and some of the teaching materials at the School of Mechanical Engineering were naval models of his that were made at the school between 1774 and 1783. Before being included in the Maritime Museum of Piran collection, these models were kept in the National Museum in Ljubljana. Some of Gruber's other workshop models had been in Pula, Croatia, but disappeared during the withdrawal of the Italian Army in 1943. Other Gruber models exhibited in the Maritime Museum are the Venetian battle galleon, the lagoon cargo galleon, the corvette, the schooner and a framework used during ship construction. In 1768, he moved to Ljubljana, where he since 1769 taught mathematics, mechanics, hydraulics and engineering at the School of Mechanical Engineering in Ljubljana. The school taught classes in shipbuilding, port devices and structures, and Gruber's wish was to build a dockyard nearby. That enterprise proved to be prohibitively expensive. From 1772 until 1781 Gruber was the director of the navigation direction in Ljubljana, which took custody of the improvement of navigation on the Sava, the Kolpa and the Ljubljanica. After the Suppression of the Society of Jesus by Pope Clement XIV, in 1773, Gruber remained as engineer at the court of Emperor Joseph II until 1784. From 1772 until 1780, the construction of the Gruber Canal was started upon his plans, to improve the outflow of water from the Ljubljana Marshes and thus to protect the town of Ljubljana from flooding. The works were carried out under his supervision until 1777, when he was replaced by Vincenc Struppi, due to large increases of the expenses and even doubts about his integrity. At the same time, he was the architect and builder of Gruber Palace — a vast rococo edifice that was originally his mansion — used for his research in physics and hydraulics. It had also an astronomic observatory. The palace was bought in 1887 by the Carniolan Savings Bank and has housed the Slovenian archives since 1965.
Living at Saint Petersburg, and being a close confidant of Paul I, Gruber often discussed with him the affairs of the Society, on behalf of Franciszek Kareu, Vicar General of the Jesuits in Russia. In 1797 he became officially the Assistant of Kareu and ultimately, after the death of the later, Gruber was elected Superior General of the Society of Jesus in Russia, at the Regional Congregation IV. That was just a few months after Pius VII had issued the brief Catholicae fidei, giving approval to the existence of the Russian Jesuits and making the Temporary Vicar 'Superior General for Russia'. Gruber expanded pioneering activities by opening several missions among the Germans in the Volga region, Odessa and Astrakhan where schools and agricultural activities were developed. However, politically, problems were growing with Paul I as well as with the local bishop of Polatsk.
Towards reunification
In the meantime the movement towards reunion of the Jesuits was gaining momentum. In the wake of the French revolution political opposition of the Bourbon courts had weakened. In 1803 the Jesuits of Stonyhurst College in England were made members of the Russian Jesuit province. The 'Fathers of the Faith' an independent group of ex-jesuits received affiliation in 1805. Contacts were established with the ex-Jesuits of Maryland. In 1804, the existence of the Jesuits was officially recognized in Naples and Gruber became 'Superior General of the Society of Jesus in Russia and Naples'. Plans were on to send an overland mission to China when Gruber died after an accidental fire at his Saint Petersburg residence on April 7, 1805.