Answer
James II was designated as the successor to the throne due to the absence of offspring from King Charles II's marriage to Catherine of Braganza. As Catherine remained childless throughout their union, the monarch's brother, James, became the heir presumptive, ensuring the continuation of the royal lineage and succession.