 In Königsberg Hartknoch started studying theology at a Protestant institute.Soon after his parents died and he had to take on jobs.He became a private teacher in Kaunas and then a rector in the Protestant school in Vilnius.