By cyclization of ethyl acetoacetate (I), 2,1,3-benzoxadiazole-4-carboxaldehyde (II) and concentrated NH3 in refluxing ethanol.