The reaction of piperidine-4-carboxylic acid (I) with formic acid and acetic anhydride gives 1-formylpiperidine-4-carboxylic acid (II), which is treated with SOCl2 and acetic anhydride to yield the corresponding acyl chloride (III). The Friedel-Crafts condensation of (III) with refluxing 1,3-difluorobenzene (IV) by means of AlCl3 affords 4-(2,4-difluorobenzoyl)-1-formylpiperidine (V), which is treated with hydroxylamine in refluxing ethanol to give the corresponding oxime (VI). The cyclization of (VI) by means of NaH in hot THF/DMF yields 6-fluoro-3-(1-formylpiperidin-4-yl)-1,2-benzisoxazole (VII), which is treated with HCl in refluxing ethanol to afford 6-fluoro-3-(4-piperidyl)-1,2-benzisoxazole (VIII). Finally, this compound is condensed with 4-(3-chloropropoxy)-3-methoxyacetophenone (IX) by means of K2CO3 in hot DMF. The intermediate 4-(3-chloropropoxy)-3-methoxyacetophenone (IX) can be obtained by condensation of 4-hydroxy-3-methoxyacetophenone (IX) with 3-chcloropropyl bromide (X) by means of NaH or K2CO3 in DMF.