sentence: the company 's army had first joined forces with the royal navy during the seven years ' war , and the two continued to co-operate in arenas outside india : the eviction of napoleon from egypt ( 1799 ) , the capture of java from the netherlands ( 1811 ) , the acquisition of singapore ( 1819 ) and malacca ( 1824 ) and the defeat of burma ( 1826 ) .