I have two JEE applications, one runs under Java 8, the other runs under Java 11.
Is there a way to force each application to use the good Java version when I run it (via java -jar xxx.war)? Or do I need to update the Path environment system each time?
My issue is that Java 8 application cannot run with Java 11 because it generates the exception
java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
(which is not supported in Java 11).