late 14c., jakke "a mechanical device," from the masc. name Jack. The proper name was used in Middle English for "any common fellow," and thereafter extended to various appliances which do the work of common servants (1570s). Also used generically of male animals (1620s, see jackass, jackdaw, etc.).
As a portable contrivance for raising weight by force from below, 1703. As the name of a device for pulling off boots from 1670s. The jack in a pack of playing cards (1670s) is in German Bauer "peasant." Slang meaning "money" is by 1890 (in earlier slang it meant "a small coin"). Jack-towel, one sewn together at the ends round a roller, is from 1795. The jack of Union Jack is a nautical term for "small flag at the bow of a ship" (1630s) and perhaps is from the word's secondary sense of "smaller than normal size."
Others are reading
<a href="https://www.etymonline.com/word/flapjack">Etymology of flapjack by etymonline</a>
Harper, D. (n.d.). Etymology of flapjack. Online Etymology Dictionary. Retrieved $(datetime), from https://www.etymonline.com/word/flapjack