Fix java target in Travis CI