Is there a way to ignore the -Xbootclasspath/p
flag inside the java command line with Java 11 withoiut removing it such that the same command line can be used for Java 8 and Java 11?
The command line I am using is the following with ALPN.
java -Xbootclasspath/p:/.m2/repository/org/mortbay/jetty/alpn/alpn-boot/8.1.12.v20180117/alpn-boot-8.1.12.v20180117.jar -jar the-bundle.jar
I get the following error.
-Xbootclasspath/p is no longer a supported option.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
I already tried -XX:+IgnoreUnrecognizedVMOptions
without success (I get the same error).