Fix Java versioning