James is the fifth son of Sir William Lockhart of Lee (1621-1675) and Robina Shouster (c 1625-?).
Four older brothers, three of whom succeeded to Lee.
Descendant table on WorldConnect