 Adams was the son of Francis Adams (1796–1861), a surgeon and Espeth Shaw.He studied medicine and joined as an army physician in 1848, serving in the 22nd Infantry Regiment in India.Between 1849–1854 he was posted in Dagshai, Rawalpindi and Peshawar.