Upon finishing his education with excellent results, he joined the French army, eventually deserting in 1829 at the time of the expedition to Morea. He then became a criminal and was in and out of prison, which was, as he called it, his "criminal university."