“James II” is how he was styled in England but he was “James VII” of Scotland. His proper title was “James VII and II”.
This is pretty basic stuff. How appalling that this kind of mistake is being made in this day and age in one of our chief national newspapers.