Hartwich was the son of Emil Hermann Hartwich, the building surveyor and railway engineer of the Danziger government.
In 1862 he took up study of jurisprudence at the University of Heidelberg,[REF] where he became a member of the ancient student fraternity, the Corps Rhenania [REF].