Gruber was born in Krukanice, a small village near to Pilsen on September 24, 1814. He started his medical studies in Prague at 1834.
He became doctor of surgery in 1842, and in 1844 was conferred doctor of medicine. He was prosector of normal anatomy at the University of Prague in 1842-1847.
Although qualified, he was unable to achieve a professorship in his native country. Therefore, in 1846, on the initiative of Pirogov, he was invited to become the first prosector for normal, practical, and pathological anatomy at the Medical Academy in St.
Petersburg. From 1855, Gruber was entrusted the directorship of practical anatomy, remaining at that position for some 30 years.
He died on September 30 1890 of stroke in Vienna. Gruber played an active role in the establishment of the anatomical-physiological institute in Petersburg and founded here a museum.
As one of the most experienced and active anatomists, Gruber published, over a period of 41 years, almost 500 scientific works.