The two flags have slightly different syntax. At some point (I think it was build 9-ea+113) where the JVM switched over from -XaddExports to the --add-exports syntax, as part of the effort for JEP 293 which aims to achieve GNU-style syntax for command line arguments.