[CH3:1][N:2]1[C@H:6]2[C@@H:7]([C:19]([O:21][CH3:22])=[O:20])[C@@H:8]([O:10]C(C3C=CC=CC=3)=O)[CH2:9][C@@H:3]1[CH2:4][CH2:5]2.Cl.Cl>O>[CH3:1][N:2]1[C@H:6]2[C@@H:7]([C:19]([O:21][CH3:22])=[O:20])[C@@H:8]([OH:10])[CH2:9][C@@H:3]1[CH2:4][CH2:5]2Cocaine hydrochloride (2.0 g) was dissolved in distilled water (100 ml) and concentrated hydrochloric acid (8.0 ml) and refluxed for 19 hours. After cooling to room temperature, the benzoic acid precipitated and was filtered. The filtrate was washed with chloroform to remove any remaining benzoic acid. The aqueous solution was evaporated to dryness in vacuo. The residue (ecgonine hydrochloride) was esterified by refluxing in methanolic hydrogen chloride (150 ml) for 17 hours. The solvent was removed in vacuo to yield ecgonine methyl ester as an oil.