Fix java option which cannot have whitespace.