This version is still in development and is not considered stable yet. For the latest stable version, please use Spring Boot 3.3.5! |
Executable Jar Restrictions
You need to consider the following restrictions when working with a Spring Boot Loader packaged application:
-
Zip entry compression: The
ZipEntry
for a nested jar must be saved by using theZipEntry.STORED
method. This is required so that we can seek directly to individual content within the nested jar. The content of the nested jar file itself can still be compressed, as can any other entry in the outer jar.
-
System classLoader: Launched applications should use
Thread.getContextClassLoader()
when loading classes (most libraries and frameworks do so by default). Trying to load nested jar classes withClassLoader.getSystemClassLoader()
fails.java.util.Logging
always uses the system classloader. For this reason, you should consider a different logging implementation.