Remove incorrect java flags.