A simple route to the 8-oxabicyclo[3.2.1]octyl and 9-oxabicyclo[3.3.1]nonyl systems. Synthesis of the 8-oxa analog of cocaine.