3 ms·
Counting on the order of files to support multiple versions of jars was never a good idea. Java does have multiple version ("release") jar files for your use c
by wpollock 2y ago
Counting on the order of files to support multiple versions of jars was never a good idea. Java does have multiple version ("release") jar files for your use case since java 9. See <https://docs.oracle.com/en/java/javase/24/docs/api/java.base/java/util/jar/JarFile.html https://docs.oracle.com/en/java/javase/24/docs/api/java.base...>.
Since duplicates on the classpath don't cause problems, a quick & dirty fix is to manually list versioned jars first, in order, then the jars/* argument.