 Born to a family of petty nobles, Stanevičius studied at the Jesuit gymnasium in Kražiai from 1817 to 1821.For a year he worked in Kražiai as a private teacher, before enrolling into the Art and Literature Department of Vilnius University.There he was influenced by democratic ideas of professors such as Joachim Lelewel and Ignacy Onacewicz.