A widower , James was the younger brother and heir of Charles II of England .
He was the younger brother of Charles II .