Sorry, James II was Bonnie Prince Charlie's grandfather, the baby born in 1688 was his father.
James II, 1633-1701
James Edward Stuart, 1688 - 1766 (the "Old Pretender")
Charles Edward Stuart, 1720-88 ( the "Young Pretender", Bonnie Prince Charlie).
The Catholic Church withdrew support for the Stuart dynasty in 1766.