Emperor Franz Joseph, Karl and generals