[2016-10-13T13:33:19.180] Unrecognized option: -XaddExports:javafx.web/com.sun.webkit.network=ALL-UNNAMED
[2016-10-13T13:33:19.180] Error: Could not create the Java Virtual Machine.
[2016-10-13T13:33:19.180] Error: A fatal exception has occurred. Program will exit.
[2016-10-13T13:33:19.185] Unrecognized option: -XaddExports:javafx.web/com.sun.webkit.network=ALL-UNNAMED
[2016-10-13T13:33:19.185] Error: Could not create the Java Virtual Machine.
[2016-10-13T13:33:19.185] Error: A fatal exception has occurred. Program will exit.
java -version:
java version "9-ea"
Java(TM) SE Runtime Environment (build 9-ea+139)
Java HotSpot(TM) 64-Bit Server VM (build 9-ea+139, mixed mode)
Thanks for the info! Looks like Java 9 changed a little bit since that code was added, and now --add-exports is a standard option instead of a non-standard Oracle extension (-X)
It fails with the following error:
java -version:
I got it working with this workaround:
Instead of using exportModules = true