or Jackanapes = Jack of apes. An impertinent, vulgar prig. (See Jeannot.) More likely, it is Jack and ape, formed on the model of Jack-ass, a stupid fool.
“I will teach a scurvy jackanape priest to meddle or make.” —
Source: Dictionary of Phrase and Fable, E. Cobham Brewer, 1894