Adding ark and Java