Loading... (original) (raw)
With JDK 8 you can compile with -endorseddirs set to a location containing the Java EE versions of the standalone technologies to override the versions in Java SE.
With JDK 11 it should be possible to compile with --release 8 and also specify -endorseddirs to override the standalone technologies. Currently this combination of options is not allowed by javac.