[NH2:1][C:2]1([C:8]([OH:10])=[O:9])[CH2:7][CH2:6][O:5][CH2:4][CH2:3]1.Cl.[CH3:12]O>>[NH2:1][C:2]1([C:8]([O:10][CH3:12])=[O:9])[CH2:7][CH2:6][O:5][CH2:4][CH2:3]1A solution 4-aminotetrahydro-2H-pyran-4-carboxylic acid (0.50 g, 3.4 mmol) in MeOH (10 mL) was saturated with HCl gas at 0-5° C., and the mixture was then heated at reflux for 3.5 h. The solvents were evaporated in vacuo, the residue was dissolved in saturated aqueous NaHCO3 and the aqueous solution was extracted with CH2Cl2 (2×50 mL). The combined extracts were dried (MgSO4) and evaporated in vacuo to give methyl 4-aminotetrahydro-2H-pyran-4-carboxylate (410 mg, 2.58 mmol).