Jovanović was born in the village of Pazarište near Gospić in Lika (then Military Frontier, Austrian Empire, today Croatia). He joined the Austrian army in 1845 and during 1848–1849 fought under general Radetzky in Italy. In 1850 he was transferred to the General staff and later served as an adjutant of general Gabriel Rodić in southern Dalmatia.