Hahn attended the Ernestinum Gymnasium in Gotha.