Tag

Executable JAR

1 views collected around this technical thread.

macrozheng
macrozheng
Dec 5, 2023 · Backend Development

Why Can Spring Boot Fat JARs Run Directly? Uncover the Secrets

This article explains how Spring Boot packages applications as executable Fat JARs, embeds a web server, uses a special launcher, and defines a main class so the JAR can be run with a simple java -jar command, eliminating the need for separate deployment servers.

Embedded ServerExecutable JARFat Jar
0 likes · 7 min read
Why Can Spring Boot Fat JARs Run Directly? Uncover the Secrets
Java Architect Essentials
Java Architect Essentials
Feb 8, 2022 · Backend Development

Understanding Spring Boot Executable JAR, JarLauncher, and Custom Class Loading

This article explains how Spring Boot's spring-boot-maven-plugin creates an executable JAR, describes the internal structure and Manifest, details the role of JarLauncher and the custom LaunchedURLClassLoader, and provides concrete code examples for class loading and execution.

ClassLoaderExecutable JARJarLauncher
0 likes · 21 min read
Understanding Spring Boot Executable JAR, JarLauncher, and Custom Class Loading
Java Architect Essentials
Java Architect Essentials
Oct 15, 2021 · Backend Development

Understanding Spring Boot Executable JAR Packaging and the Role of JarLauncher

This article explains how the spring-boot-maven-plugin creates a self‑contained executable JAR, describes its internal structure, the manifest configuration, and details the function of Spring Boot Loader classes such as JarLauncher and LaunchedURLClassLoader in launching the application.

Class LoaderExecutable JARJarLauncher
0 likes · 11 min read
Understanding Spring Boot Executable JAR Packaging and the Role of JarLauncher
Top Architect
Top Architect
Apr 18, 2021 · Backend Development

Understanding Spring Boot Executable JAR Packaging and the Role of JarLauncher

This article explains how Spring Boot's spring-boot-maven-plugin creates an executable fat JAR, details its internal structure, the purpose of the JarLauncher class, and the custom class loading mechanisms used to launch the application, including code examples and manifest analysis.

ClassLoaderExecutable JARJarLauncher
0 likes · 12 min read
Understanding Spring Boot Executable JAR Packaging and the Role of JarLauncher
Java Captain
Java Captain
Feb 19, 2021 · Backend Development

Understanding Spring Boot Executable JAR Packaging and the Role of JarLauncher

This article explains how Spring Boot's spring-boot-maven-plugin creates an executable JAR, describes the internal JAR structure, the function of the JarLauncher class, and details the custom class loader mechanisms that enable Spring Boot applications to run directly with java -jar.

ClassLoaderExecutable JARJarLauncher
0 likes · 15 min read
Understanding Spring Boot Executable JAR Packaging and the Role of JarLauncher