With the abolition of slavery in 1863 , workers were brought in from India and Java .